adapters

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONFile

type JSONFile[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewJSONFile

func NewJSONFile[T interface{}](filename string) *JSONFile[T]

func (*JSONFile[T]) Read

func (j *JSONFile[T]) Read() T

func (*JSONFile[T]) Write

func (j *JSONFile[T]) Write(data T)

type TOMLFile added in v0.6.0

type TOMLFile[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewTOMLFile added in v0.6.0

func NewTOMLFile[T interface{}](filename string) *TOMLFile[T]

func (*TOMLFile[T]) Read added in v0.6.0

func (j *TOMLFile[T]) Read() T

func (*TOMLFile[T]) Write added in v0.6.0

func (j *TOMLFile[T]) Write(data T)

type Writer

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

func NewWriter

func NewWriter(filename string) *Writer

func (*Writer) Write

func (w *Writer) Write(data []byte)

type YAMLFile added in v0.6.0

type YAMLFile[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewYAMLFile added in v0.6.0

func NewYAMLFile[T interface{}](filename string) *YAMLFile[T]

func (*YAMLFile[T]) Read added in v0.6.0

func (j *YAMLFile[T]) Read() T

func (*YAMLFile[T]) Write added in v0.6.0

func (j *YAMLFile[T]) Write(data T)

Jump to

Keyboard shortcuts

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