mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
update
This commit is contained in:
8
stringx/append.go
Normal file
8
stringx/append.go
Normal file
@ -0,0 +1,8 @@
|
||||
package stringx
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Append[E any](dst []byte, e E) []byte {
|
||||
toAppend := fmt.Sprintf("%v", e)
|
||||
return append(dst, []byte(toAppend)...)
|
||||
}
|
Reference in New Issue
Block a user