go: cuelang.org/go/cue/encoding Index | Files

package encoding

import "cuelang.org/go/cue/encoding"

Package encoding provides support for managing data format files supported by CUE.


Package Files


type Encoding Uses

type Encoding struct {
    // contains filtered or unexported fields

Encoding represents a data encoding.

func All Uses

func All() []*Encoding

All returns all known encodings.

func MapExtension Uses

func MapExtension(ext string) *Encoding

MapExtension returns the likely encoding for a given file extension.

func (*Encoding) Name Uses

func (e *Encoding) Name() string

Name returns a lowercase name of an encoding. This is conventionally the most common file extension in lower case.

Package encoding imports 1 packages (graph). Updated 2020-10-01. Refresh now. Tools for package owners.