github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/op/delay/string_/wrap/api.go (about)

     1  // Package wrap provides wrap string builders
     2  package wrap
     3  
     4  import "github.com/m4gshm/gollections/op/delay/string_"
     5  
     6  // By returns wrapped string builder
     7  func By(pref, post string) func(s string) string {
     8  	return string_.Wrap(pref, post)
     9  }
    10  
    11  // NonEmpty returns wrapped string builder
    12  func NonEmpty(pref, post string) func(target string) string {
    13  	return string_.WrapNonEmpty(pref, post)
    14  }