config

package
v0.0.0-...-9ab11c5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(d1 []byte, d2 []byte) (bool, error)

Equal compare two TOML logically equal.

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal is a template function that try to marshal a go value to toml

func Unmarshal

func Unmarshal(p []byte, v interface{}) error

Unmarshal decodes the contents of `p` in TOML format into a pointer `v`.

Types

type GenericConfig

type GenericConfig struct {
	// Export this field to make "apiequality.Semantic.DeepEqual" happy now.
	// User of GenericConfig should not directly access this field.
	MP map[string]interface{}
}

func New

func New(o map[string]interface{}) *GenericConfig

func (*GenericConfig) DeepCopy

func (c *GenericConfig) DeepCopy() *GenericConfig

func (*GenericConfig) DeepCopyInto

func (c *GenericConfig) DeepCopyInto(out *GenericConfig)

func (*GenericConfig) DeepCopyJsonObject

func (c *GenericConfig) DeepCopyJsonObject() *GenericConfig

func (*GenericConfig) Inner

func (c *GenericConfig) Inner() map[string]interface{}

func (*GenericConfig) MarshalJSON

func (c *GenericConfig) MarshalJSON() ([]byte, error)

func (*GenericConfig) MarshalTOML

func (c *GenericConfig) MarshalTOML() ([]byte, error)

func (*GenericConfig) UnmarshalJSON

func (c *GenericConfig) UnmarshalJSON(data []byte) error

func (*GenericConfig) UnmarshalTOML

func (c *GenericConfig) UnmarshalTOML(data []byte) error

Jump to

Keyboard shortcuts

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