github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/op/string_/wrap/api.go (about) 1 // Package wrap provides string wrap utils 2 package wrap 3 4 import "github.com/m4gshm/gollections/op/string_" 5 6 // NonEmpty - wrap.NonEmpty wraps the target string only if it is non-empty 7 func NonEmpty(pref, target, post string) string { 8 return string_.WrapNonEmpty(pref, target, post) 9 }