This commit is contained in:
Dane Everitt 2021-04-03 13:20:07 -07:00
parent d4b63bef39
commit f85ee1aa73
2 changed files with 18 additions and 24 deletions

View File

@ -30,6 +30,24 @@ const (
Xml = "xml"
)
type ReplaceValue struct {
value []byte
valueType jsonparser.ValueType
}
func (cv *ReplaceValue) Value() []byte {
return cv.value
}
func (cv *ReplaceValue) Type() jsonparser.ValueType {
return cv.valueType
}
func (cv *ReplaceValue) String() string {
str, _ := jsonparser.ParseString(cv.value)
return str
}
type ConfigurationParser string
func (cp ConfigurationParser) String() string {

View File

@ -1,24 +0,0 @@
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 {
str, _ := jsonparser.ParseString(cv.value)
return str
}
func (cv *ReplaceValue) Type() jsonparser.ValueType {
return cv.valueType
}