file

package
v0.0.0-...-e03219f Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package file contains utility methods for processing files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string) (string, error)

func ReadAllCsvInts

func ReadAllCsvInts(path string, separator ...string) ([][]int, error)

func ReadBytes

func ReadBytes(path string) ([]byte, error)

func ReadCsvInts

func ReadCsvInts(path string, separator ...string) ([]int, error)

func ReadLines

func ReadLines(path string) ([]string, error)

func ReadVectorMapFunc

func ReadVectorMapFunc[T any](path string, f func(byte) (T, error)) (map[plane.Vector]T, error)

func ReadVectors

func ReadVectors(path string, ch byte) ([]plane.Vector, plane.Vector, error)

func ReadVectorsFunc

func ReadVectorsFunc(path string, f func(byte) bool) (map[byte][]plane.Vector, plane.Vector, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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