Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileSource ¶
ReadFileSource supports "http", "https", and "file" protocols. It takes in the location as a URI and returns the contents of the file as a string.
func ReadLocalFile ¶
ReadLocalFile takes in the location of a local file in the format `file://location/of/file` and returns the content of the file if the path is valid and no error occurs.
func ReadRemoteFile ¶
ReadRemoteFile takes in the location of a remote file in the format 'http://location/of/file' or 'https://location/file' and returns the content of the file if the location is valid and no error occurs.
Types ¶
type JSONMarshaller ¶ added in v0.4.21
type JSONMarshaller struct{}
func (*JSONMarshaller) Marshal ¶ added in v0.4.21
func (j *JSONMarshaller) Marshal(obj interface{}) (string, error)
func (*JSONMarshaller) Unmarshal ¶ added in v0.4.21
func (j *JSONMarshaller) Unmarshal(obj string, result interface{}) error
type Marshaller ¶ added in v0.4.21
Click to show internal directories.
Click to hide internal directories.