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

Function ExampleConcat

strutil/string_example_test.go:699–711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697}
698
699func ExampleConcat() {
700 result1 := Concat(12, "Hello", " ", "World", "!")
701 result2 := Concat(11, "Go", " ", "Language")
702 result3 := Concat(0, "An apple a ", "day,", "keeps the", " doctor away")
703 fmt.Println(result1)
704 fmt.Println(result2)
705 fmt.Println(result3)
706
707 // Output:
708 // Hello World!
709 // Go Language
710 // An apple a day,keeps the doctor away
711}
712
713func ExampleEllipsis() {
714 result1 := Ellipsis("hello world", 5)

Callers

nothing calls this directly

Calls 1

ConcatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…