go: cuelang.org/go/internal/source Index | Files

package source

import "cuelang.org/go/internal/source"

Package source contains utility functions that standardize reading source bytes across cue packages.

Index

Package Files

source.go

func Read Uses

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.

Package source imports 4 packages (graph) and is imported by 3 packages. Updated 2019-12-13. Refresh now. Tools for package owners.