Documentation

Overview

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

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Encoding

    type Encoding struct {
    	// contains filtered or unexported fields
    }

      Encoding represents a data encoding.

      func All

      func All() []*Encoding

        All returns all known encodings.

        func MapExtension

        func MapExtension(ext string) *Encoding

          MapExtension returns the likely encoding for a given file extension.

          func (*Encoding) Name

          func (e *Encoding) Name() string

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

            Source Files