blob: 76e19035ecfd1464e3013f237ebc4ee25e0fe8de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej
package slime
type Inspector interface {
Valid() bool
Type() Type
Entries() int // for arrays only
Fields() int // for objects only
AsBool() bool
AsLong() int64
AsDouble() float64
AsString() string
AsData() []byte
TraverseArray(ArrayTraverser)
TraverseObject(ObjectTraverser)
Entry(int) Inspector
Field(string) Inspector
}
|