utils

package
v0.0.0-...-ff28ada Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSlice

func ConvertSlice[T any](input []string, convertFunc func(string) (T, error)) ([]T, error)

ConvertSlice converts a slice of strings to a slice of a specified type.

func DeleteAtIndex

func DeleteAtIndex[T any](arr []T, index int) []T

func RemoveAtIndex

func RemoveAtIndex[T any](arr []T, index int) []T

func StringToBool

func StringToBool(s string) (bool, error)

StringToBool is helper functions for string to integer conversions

func StringToFloat64

func StringToFloat64(s string) (float64, error)

StringToFloat64 is helper functions for string to integer conversions

func StringToInt

func StringToInt(s string) (int, error)

StringToInt is helper functions for string to integer conversions

Types

type TCReader

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

func NewTCReader

func NewTCReader(filepath string, delimiter string) (*TCReader, error)

func (*TCReader) Close

func (tcr *TCReader) Close()

func (*TCReader) Next

func (tcr *TCReader) Next() []string

func (*TCReader) ReadEntireFile

func (tcr *TCReader) ReadEntireFile() []byte

func (*TCReader) Scan

func (tcr *TCReader) Scan() bool

Jump to

Keyboard shortcuts

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