mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
e9cc195c39
example docs
14 lines
163 B
Go
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
|
|
}
|