Documentation
¶
Overview ¶
Package source contains utility functions that standardize reading source bytes across cue packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
func Read(filename string, src interface{}) ([]byte, error)
Read loads the source bytes for the given arguments. If src != nil, Read converts src to a []byte if possible; otherwise it returns an error. If src == nil, readSource returns the result of reading the file specified by filename.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.