converters

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

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	Convert(any) ([]byte, error)
}

func GetConverter

func GetConverter(fileType string) (Converter, error)

type JsonConverter

type JsonConverter struct {
}

func (JsonConverter) Convert

func (jc JsonConverter) Convert(data any) ([]byte, error)

Converts passed in data to json data

type YamlConverter

type YamlConverter struct {
}

func (YamlConverter) Convert

func (yc YamlConverter) Convert(data any) ([]byte, error)

Converts passed in data to json data

Jump to

Keyboard shortcuts

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