filereader

package
v0.0.0-...-abf69a9 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDayExample

func ReadDayExample(day int, input int) ([]string, error)

func ReadDayExampleSolution

func ReadDayExampleSolution(day int, input int, part int) (string, error)

func ReadDayInput

func ReadDayInput(day int, input int) ([]string, error)

Types

type FileReader

type FileReader struct {
	Path string
	// contains filtered or unexported fields
}

func New

func New(path string) FileReader

func NewFromDayExample

func NewFromDayExample(day int, input int) FileReader

func NewFromDayInput

func NewFromDayInput(day int, input int) FileReader

func (*FileReader) Close

func (fr *FileReader) Close()

func (*FileReader) HasMore

func (fr *FileReader) HasMore() bool

func (*FileReader) Read

func (fr *FileReader) Read() (string, bool, error)

func (*FileReader) ReadLines

func (fr *FileReader) ReadLines() ([]string, error)

func (*FileReader) Reset

func (fr *FileReader) Reset()

Jump to

Keyboard shortcuts

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