Documentation ¶ Index ¶ Variables func ReadSource(src any) ([]byte, error) func ReadSourceLocal(filename string, src any) ([]byte, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidSource = errors.New("invalid source") ) Functions ¶ func ReadSource ¶ func ReadSource(src any) ([]byte, error) func ReadSourceLocal ¶ func ReadSourceLocal(filename string, src any) ([]byte, error) If src != nil, readSource 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. Source Files ¶ View all Source files io.go Click to show internal directories. Click to hide internal directories.