MCPcopy Create free account
hub / github.com/brimdata/super / Parse

Function Parse

order/which.go:19–28  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

17)
18
19func Parse(s string) (Which, error) {
20 switch strings.ToLower(s) {
21 case "asc":
22 return Asc, nil
23 case "desc":
24 return Desc, nil
25 default:
26 return false, fmt.Errorf("unknown order: %s", s)
27 }
28}
29
30func (w Which) String() string {
31 if w == Desc {

Callers 3

sortExprMethod · 0.92
ParseSortKeysFunction · 0.70
UnmarshalBSUPMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected