jsonpath: fix comments

avoid named return errors

fix compile error

Kubernetes-commit: 77e347b8d086c51c02ffdf50c00452864a6ec747
This commit is contained in:
Nikhita Raghunath
2017-08-10 14:32:51 +05:30
committed by Kubernetes Publisher
parent f977147926
commit e447af6403
2 changed files with 17 additions and 15 deletions

View File

@@ -131,13 +131,13 @@ func (f *IdentifierNode) String() string {
// ParamsEntry holds param information for ArrayNode
type ParamsEntry struct {
Value int
Known bool //whether the value is known when parse it
Known bool // whether the value is known when parse it
}
// ArrayNode holds start, end, step information for array index selection
type ArrayNode struct {
NodeType
Params [3]ParamsEntry //start, end, step
Params [3]ParamsEntry // start, end, step
}
func newArray(params [3]ParamsEntry) *ArrayNode {