github.com/enetx/g@v1.0.80/examples/bytes.go (about)

     1  package main
     2  
     3  import "github.com/enetx/g"
     4  
     5  func main() {
     6  	b := g.NewBytes("test rest foo bar")
     7  
     8  	b.Split().Map(g.Bytes.Upper).Collect().Print()
     9  	b.Fields().Map(g.Bytes.Upper).Collect().Print()
    10  }