Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSource = errors.New("invalid source")
)
Functions ¶
func ReadSource ¶
ReadSource converts src to a []byte if possible; otherwise it returns an error. Supported types for src are:
- string (as content, NOT as filename)
- []byte (as content)
- *bytes.Buffer (as content)
- io.Reader (as content)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.