MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / setStringArg

Function setStringArg

lint/rule/rule.go:126–133  ·  view source on GitHub ↗
(retVal *string, arg interface{})

Source from the content-addressed store, hash-verified

124}
125
126func setStringArg(retVal *string, arg interface{}) error {
127 strVal, err := toString(arg)
128 if err != nil {
129 return err
130 }
131 *retVal = strVal
132 return nil
133}
134
135func setStringArrArg(retVal *[]string, arg interface{}) error {
136 arrVal, err := toStringArr(arg)

Callers 4

applyCaseArgFunction · 0.85
applyStringArgFunction · 0.85
processParamFunction · 0.85
applyFullStopArgFunction · 0.85

Calls 1

toStringFunction · 0.85

Tested by

no test coverage detected