checking in - all basic funcs in place; add a few more then v1 merge
This commit is contained in:
13
secretvalue_funcs.go
Normal file
13
secretvalue_funcs.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package gosecret
|
||||
|
||||
/*
|
||||
MarshalJSON converts a SecretValue to a JSON representation.
|
||||
For compat reasons, the MarshalText is left "unmolested" (i.e. renders to a Base64 value).
|
||||
I don't bother with an UnmarshalJSON because it makes exactly 0 sense to unmarshal due to runtime and unexported fields in Secret.
|
||||
*/
|
||||
func (s *SecretValue) MarshalJSON() (b []byte, err error) {
|
||||
|
||||
b = []byte(string(*s))
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user