mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-09-27 03:15:55 +08:00
14 lines
150 B
Go
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]
|
|
}
|