github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/strings/example_test.go (about)

     1  package strings
     2  
     3  func ExampleString() {
     4  	testBytes := []byte{'1', '2', '3'}
     5  	s := String(testBytes)
     6  	println(s, len(s))
     7  	s1 := BytesToString(testBytes)
     8  	println(s1, len(s1))
     9  	// output:
    10  	//
    11  }