mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
14 lines
150 B
Go
14 lines
150 B
Go
package bytex
|
|
|
|
import "fmt"
|
|
|
|
func ExampleToStr() {
|
|
b := []byte{'h', 'e', 'l', 'l', 'o'}
|
|
res := ToStr(b)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// hello
|
|
}
|