package source
import "cuelang.org/go/internal/source"
Package source contains utility functions that standardize reading source bytes across cue packages.
Index ¶
Functions ¶
func Read ¶
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.
Source Files ¶
source.go
- Version
- v0.0.13
- Published
- Oct 19, 2019
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 36 minutes ago –
Tools for package owners.