Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the Apache v2.0 license.
Index ¶
- func Duplicate(data interface{}, duplicatedData interface{}) error
- func FingerprintObject(data interface{}) (*[]byte, error)
- func FromBase64(data string) ([]byte, error)
- func FromBase64URL(data string) ([]byte, error)
- func FromJSON(jsonString string, object interface{}) error
- func FromJSONBytes(jsonBytes []byte, object interface{}) error
- func FromJSONFile(path string, object interface{}) error
- func FromYAMLBytes(yamlData []byte, object interface{}) error
- func FromYAMLFile(path string, object interface{}) error
- func FromYAMLString(yamlString string, object interface{}) error
- func ToBase64(data string) string
- func ToBase64URL(data string) string
- func ToCSV(data interface{}) (string, error)
- func ToCSVBytes(data interface{}) ([]byte, error)
- func ToJSON(data interface{}) (string, error)
- func ToJSONBytes(data interface{}) ([]byte, error)
- func ToJSONFile(data interface{}, path string) error
- func ToPrettyPrintedJSONBytes(data interface{}) ([]byte, error)
- func ToString(data interface{}) string
- func ToTSV(data interface{}) (string, error)
- func ToTSVBytes(data interface{}) ([]byte, error)
- func ToUnescapedJSONBytes(data interface{}) ([]byte, error)
- func ToYAML(data interface{}) (string, error)
- func ToYAMLBytes(data interface{}) ([]byte, error)
- func ToYAMLFile(data interface{}, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FingerprintObject ¶
func FromBase64 ¶
func FromBase64URL ¶
func FromJSONBytes ¶
func FromJSONFile ¶
func FromYAMLBytes ¶
func FromYAMLFile ¶
func FromYAMLString ¶
func ToBase64URL ¶
func ToCSVBytes ¶
func ToJSONBytes ¶
func ToJSONFile ¶
ToJSONFile writes the data to path in YAML format
func ToPrettyPrintedJSONBytes ¶ added in v0.10.6
func ToTSVBytes ¶
func ToUnescapedJSONBytes ¶
json.Marshal writes some characters (e.g. '<') as unicode. This stops that to make logsa easier to read.
func ToYAMLBytes ¶
func ToYAMLFile ¶
ToYAMLFile writes the data to path in YAML format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.