MCPcopy Index your code
hub / github.com/chain/Core / Int

Function Int

env/env.go:22–26  ·  view source on GitHub ↗

Int returns a new int pointer. When Parse is called, env var name will be parsed and the resulting value will be assigned to the returned location.

(name string, value int)

Source from the content-addressed store, hash-verified

20// and the resulting value
21// will be assigned to the returned location.
22func Int(name string, value int) *int {
23 p := new(int)
24 IntVar(p, name, value)
25 return p
26}
27
28// IntVar defines an int var with the specified
29// name and default value. The argument p points

Callers 1

TestIntFunction · 0.85

Calls 1

IntVarFunction · 0.85

Tested by 1

TestIntFunction · 0.68