Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrNotJSONArrayOfString = erorr.Error("jsonstr: not JSON array of strings")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strings ¶
type Strings struct {
// contains filtered or unexported fields
}
Strings represents a JSON array of strings.
For example:
var strings jsonstr.Strings // ... jason := []byte(`["once", "twice", "thrice", "fource"]`) err := json.Unmarshal(jason, &strings)
func CompileStrings ¶
func (Strings) MarshalJSON ¶
func (*Strings) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.