MCPcopy Create free account
hub / github.com/WICG/webpackage / parseVariants

Function parseVariants

go/bundle/encoder.go:301–304  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

299type Variants [][]string
300
301func parseVariants(s string) (Variants, error) {
302 vs, err := parseListOfStringLists(s)
303 return Variants(vs), err
304}
305
306func (v Variants) numberOfPossibleKeys() (int, error) {
307 n := 1

Callers 3

TestVariantsFunction · 0.85

Calls 2

parseListOfStringListsFunction · 0.85
VariantsTypeAlias · 0.85

Tested by 1

TestVariantsFunction · 0.68