csv

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "csv"

Name of the converter.

Variables

This section is empty.

Functions

func Convert added in v0.1.7

func Convert[T any](r io.Reader) (T, error)

Convert loads a CSV file and converts it to JSON.

Types

type CSV

type CSV[T any] struct {
	*converter.Converter[T] `json:"converter" validate:"required"`
}

CSV definition.

func New

func New[T any](opts ...converter.Func[T]) (*CSV[T], error)

New creates a new converter.

func (*CSV[T]) Run

func (c *CSV[T]) Run(ctx context.Context, r io.Reader) (T, error)

Run the conversion.

Jump to

Keyboard shortcuts

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