Files
go-easy-utils/byteUtil/byte_to_str_example_test.go
jeffery e9cc195c39 Feature/example test (#24)
example docs
2023-04-12 15:09:44 +08:00

14 lines
163 B
Go

package byteUtil
import "fmt"
func ExampleBytesToStr() {
b := []byte{'h', 'e', 'l', 'l', 'o'}
res := BytesToStr(b)
fmt.Println(res)
// Output:
// hello
}