MCPcopy
hub / github.com/duke-git/lancet / ExampleWrap

Function ExampleWrap

strutil/string_example_test.go:347–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345}
346
347func ExampleWrap() {
348 result1 := Wrap("foo", "")
349 result2 := Wrap("foo", "*")
350 result3 := Wrap("'foo'", "'")
351 result4 := Wrap("", "*")
352
353 fmt.Println(result1)
354 fmt.Println(result2)
355 fmt.Println(result3)
356 fmt.Println(result4)
357 // Output:
358 // foo
359 // *foo*
360 // ''foo''
361 //
362}
363
364func ExampleUnwrap() {
365 result1 := Unwrap("foo", "")

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…