15 lines
250 B
Go
15 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
|
||
|
}
|