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.

Index

Package Files

encoding.go

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) and is imported by 3 packages. Updated 2019-12-11. Refresh now. Tools for package owners.