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

Function New

stringy.go:54–56  ·  view source on GitHub ↗

New func returns pointer to input struct

(val string)

Source from the content-addressed store, hash-verified

52
53// New func returns pointer to input struct
54func New(val string) StringManipulation {
55 return &input{Input: val}
56}
57
58// Acronym func returns acronym of input string.
59// You can chain to upper which with make result all upercase or ToLower

Callers 15

mainFunction · 0.92
stringy_test.goFile · 0.85
TestInput_AcronymFunction · 0.85
TestInput_EmptyBetweenFunction · 0.85
TestInput_BooleanTrueFunction · 0.85
TestInput_BooleanFalseFunction · 0.85
TestInput_BooleanErrorFunction · 0.85
TestInput_CamelCaseFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestInput_AcronymFunction · 0.68
TestInput_EmptyBetweenFunction · 0.68
TestInput_BooleanTrueFunction · 0.68
TestInput_BooleanFalseFunction · 0.68
TestInput_BooleanErrorFunction · 0.68
TestInput_CamelCaseFunction · 0.68
TestInput_ContainsAllFunction · 0.68