Files
go-easy-utils/strx/to_byte_example_test.go
2025-07-08 15:26:54 +08:00

14 lines
150 B
Go

package strx
import "fmt"
func ExampleToBytes() {
s := "hello"
res := ToBytes(s)
fmt.Printf("%v", res)
// Output:
// [104 101 108 108 111]
}