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

Function MustParse

pkg/utils/bytesize/bytesize.go:146–152  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

144}
145
146func MustParse(s string) int64 {
147 v, err := Parse(s)
148 if err != nil {
149 log.PanicError(err, "parse bytesize failed")
150 }
151 return v
152}

Callers 1

TestByteSizeFunction · 0.70

Calls 2

PanicErrorMethod · 0.80
ParseFunction · 0.70

Tested by 1

TestByteSizeFunction · 0.56