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

Method Suffix

stringy.go:398–405  ·  view source on GitHub ↗

Suffix makes sure that string is suffixed with a given string

(with string)

Source from the content-addressed store, hash-verified

396
397// Suffix makes sure that string is suffixed with a given string
398func (i *input) Suffix(with string) string {
399 input := getInput(*i)
400 if strings.HasSuffix(input, with) {
401 return input
402 }
403
404 return input + with
405}

Callers

nothing calls this directly

Calls 1

getInputFunction · 0.85

Tested by

no test coverage detected