encoding

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package encoding provides common functionality for go-structconf encodings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding interface {
	// UnmarshalTo unmarshals the passed bytes to the given destination
	UnmarshalTo(in []byte, dest map[string]interface{}) error

	// MarshalFrom marshals the given source to an array of bytes
	MarshalFrom(src map[string]interface{}) ([]byte, error)
}

Encoding defines the configuration encoding interface An implementation of this interface provides marshalling and unmarshalling of the configuration data

Directories

Path Synopsis
Package json provides the JSON encoding for go-structconf
Package json provides the JSON encoding for go-structconf
Package toml provides the TOML encoding for go-structconf
Package toml provides the TOML encoding for go-structconf
Package yaml provides the YAML encoding for go-structconf
Package yaml provides the YAML encoding for go-structconf

Jump to

Keyboard shortcuts

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