csv

package
v0.0.0-...-85b91c5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReader

func CreateReader(input io.Reader, delimiter rune) *stdcsv.Reader

CreateReader creates a csv.Reader with the given delimiter.

func CreateReaderAndDetermineDelimiter

func CreateReaderAndDetermineDelimiter(ctx *markup.RenderContext, rd io.Reader) (*stdcsv.Reader, error)

CreateReaderAndDetermineDelimiter tries to guess the field delimiter from the content and creates a csv.Reader. Reads at most guessSampleSize bytes.

func FormatError

func FormatError(err error, locale translation.Locale) (string, error)

FormatError converts csv errors into readable messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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