encoding

package
v0.3.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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