gotools/formatting/bytetools.go

15 lines
250 B
Go
Raw Normal View History

2018-12-19 14:45:37 +01:00
package formatting
import "fmt"
func byteFormat(fmtString string, input []byte) []byte {
return []byte(fmt.Sprintf(fmtString, input))
}
func byteCat(prev, next []byte) []byte {
for _, b := range next {
prev = append(prev, b)
}
return prev
}