13 lines
270 B
Go
13 lines
270 B
Go
package index
|
|
|
|
import "encoding/json"
|
|
|
|
// rawList is the list a kept predefined value holds, as it was written.
|
|
func rawList(value []byte) json.RawMessage {
|
|
var kept struct {
|
|
List json.RawMessage `json:"list"`
|
|
}
|
|
_ = json.Unmarshal(value, &kept)
|
|
return kept.List
|
|
}
|