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

Method LcFirst

stringy.go:223–229  ·  view source on GitHub ↗

LcFirst simply returns result by lower casing first letter of string and it can be chained on function which return StringManipulation interface

()

Source from the content-addressed store, hash-verified

221// LcFirst simply returns result by lower casing first letter of string and it can be chained on
222// function which return StringManipulation interface
223func (i *input) LcFirst() string {
224 input := getInput(*i)
225 for _, v := range input {
226 return string(unicode.ToLower(v)) + input[len(string(v)):]
227 }
228 return ""
229}
230
231// Lines returns slice of strings by removing white space characters
232func (i *input) Lines() []string {

Callers

nothing calls this directly

Calls 2

getInputFunction · 0.85
ToLowerMethod · 0.65

Tested by

no test coverage detected