source

package
v0.8.0-0.dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL