github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/types/querystring/querystring.go (about) 1 package string 2 3 import ( 4 "github.com/lmorg/murex/lang" 5 "github.com/lmorg/murex/lang/stdio" 6 ) 7 8 const dataType = "qs" 9 10 func init() { 11 // Register data type 12 lang.Marshallers[dataType] = marshal 13 lang.Unmarshallers[dataType] = unmarshal 14 lang.ReadIndexes[dataType] = index 15 16 stdio.RegisterReadArray(dataType, readArray) 17 stdio.RegisterReadArrayWithType(dataType, readArrayWithType) 18 stdio.RegisterReadMap(dataType, readMap) 19 }