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

Function setIntArg

lint/rule/rule.go:117–124  ·  view source on GitHub ↗
(retVal *int, arg interface{})

Source from the content-addressed store, hash-verified

115}
116
117func setIntArg(retVal *int, arg interface{}) error {
118 intVal, err := toInt(arg)
119 if err != nil {
120 return err
121 }
122 *retVal = intVal
123 return nil
124}
125
126func setStringArg(retVal *string, arg interface{}) error {
127 strVal, err := toString(arg)

Callers 1

applyIntArgFunction · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected