csv

package
v1.24.0-dev Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 2

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 added in v1.16.0

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