csv

package
v0.0.0-...-9813e4e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const CsvFieldSeparator = ';'

Variables

This section is empty.

Functions

func ReadColumn

func ReadColumn(csvFile string, column int) ([]string, error)

Reads and returns the specified column, as a slice of strings, from a CSV file. Columns are numbered starting at 0.

func ReadVMCredsFile

func ReadVMCredsFile(csvFile string) ([]string, []string, error)

Reads a whole csv VM credentials at once into memory.

Types

type CsvReader

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

Simple wrapper over csv.Reader

func NewReader

func NewReader(file string) (*CsvReader, error)

func (*CsvReader) Close

func (csvr *CsvReader) Close()

func (*CsvReader) Read

func (csvr *CsvReader) Read() (record []string, err error)

Source Files

  • csv.go

Jump to

Keyboard shortcuts

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