Files
go-easy-utils/bytex/to_str_example_test.go
T
2025-07-08 15:26:54 +08:00

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
}