MCPcopy
hub / github.com/CodisLabs/codis / UnmarshalText

Method UnmarshalText

pkg/utils/bytesize/bytesize.go:81–88  ·  view source on GitHub ↗
(text []byte)

Source from the content-addressed store, hash-verified

79}
80
81func (p *Int64) UnmarshalText(text []byte) error {
82 n, err := Parse(string(text))
83 if err != nil {
84 return err
85 }
86 *p = Int64(n)
87 return nil
88}
89
90var (
91 fullRegexp = regexp.MustCompile(`^\s*(\-?[\d\.]+)\s*([kmgtp]?b|[bkmgtp]|)\s*$`)

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.70
Int64TypeAlias · 0.70

Tested by

no test coverage detected