MCPcopy Create free account
hub / github.com/gobeam/stringy / Surround

Method Surround

stringy.go:339–342  ·  view source on GitHub ↗

Surround takes one param with which is used to surround user input and it can be chained on function which return StringManipulation interface.

(with string)

Source from the content-addressed store, hash-verified

337// Surround takes one param with which is used to surround user input and it
338// can be chained on function which return StringManipulation interface.
339func (i *input) Surround(with string) string {
340 input := getInput(*i)
341 return with + input + with
342}
343
344// Tease takes two params length and indicator and it shortens given string
345// on passed length and adds indicator on end

Callers

nothing calls this directly

Calls 1

getInputFunction · 0.85

Tested by

no test coverage detected