gocuelang.org/go/internal/cueimports Index | Files

package cueimports

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

Package cueimports provides support for reading the import section of a CUE file without needing to read the rest of it.

Index

Functions

func Read

func Read(f io.Reader) ([]byte, errors.Error)

Read is like io.ReadAll, except that it expects a CUE file as input and stops reading the input once the imports have completed.

Source Files

read.go

Version
v0.8.0
Published
Mar 15, 2024
Platform
windows/amd64
Imports
5 packages
Last checked
42 minutes ago

Tools for package owners.