MCPcopy
hub / github.com/caddyserver/caddy / Int

Method Int

cmd/main.go:329–332  ·  cmd/main.go::Flags.Int

Int returns the integer representation of the flag given by name. It returns 0 if the flag is not an integer type. It panics if the flag is not in the flag set.

(name string)

Source from the content-addressed store, hash-verified

327// is not an integer type. It panics if the flag is
328// not in the flag set.
329func (f Flags) Int(name string) int {
330 val, _ := strconv.ParseInt(f.String(name), 0, strconv.IntSize)
331 return int(val)
332}
333
334// Float64 returns the float64 representation of the
335// flag given by name. It returns false if the flag

Callers 7

addStateMethod · 0.45
ServeHTTPMethod · 0.45
handleErrorMethod · 0.45
finishSettingUpFunction · 0.45
exitProcessFunction · 0.45
cmdAdaptConfigFunction · 0.45
loadConfigWithLoggerFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected