gotools/formatting/bytetools.go
2018-12-19 14:45:37 +01:00

14 lines
250 B
Go

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
}