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

Method Int

modules/caddyhttp/caddyhttp.go:203–206  ·  view source on GitHub ↗

Int returns ws as an integer. If ws is not an integer, 0 is returned.

()

Source from the content-addressed store, hash-verified

201// Int returns ws as an integer. If ws is not an
202// integer, 0 is returned.
203func (ws WeakString) Int() int {
204 num, _ := strconv.Atoi(string(ws))
205 return num
206}
207
208// Float64 returns ws as a float64. If ws is not a
209// float value, the zero value is returned.

Callers 15

CertificateAllowedMethod · 0.45
logRequestMethod · 0.45
errLogValuesFunction · 0.45
cmdRespondFunction · 0.45
automaticHTTPSPhase1Method · 0.45
ServeHTTPMethod · 0.45
handleUpgradeResponseMethod · 0.45
copyBufferMethod · 0.45
WriteMethod · 0.45
GetUpstreamsMethod · 0.45
doActiveHealthCheckMethod · 0.45
proxyLoopIterationMethod · 0.45

Calls

no outgoing calls

Tested by 1

generateRandFileFunction · 0.36