Fix support for configuration files with more complex cases

This commit is contained in:
Dane Everitt
2020-04-12 12:22:37 -07:00
parent a4c9562e42
commit 9de094f078
3 changed files with 93 additions and 53 deletions

22
parser/value.go Normal file
View File

@@ -0,0 +1,22 @@
package parser
import (
"github.com/buger/jsonparser"
)
type ReplaceValue struct {
value []byte
valueType jsonparser.ValueType `json:"-"`
}
func (cv *ReplaceValue) Value() []byte {
return cv.value
}
func (cv *ReplaceValue) String() string {
return string(cv.value)
}
func (cv *ReplaceValue) Type() jsonparser.ValueType {
return cv.valueType
}