aoc

package
v0.0.0-...-2831f8c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

Atoi converts a string to an int and panics if it goes wrong

func Check

func Check(e error)

Check panics if the error is not nil

func Delete

func Delete(s []int, i int) []int

Delete an int from a slice of ints

func FileToBytes

func FileToBytes(filePath string) []byte

FileToBytes reads a file into an array of bytes

func FileToLines

func FileToLines(filePath string) []string

FileToLines reads a file into an array of strings

func FileToString

func FileToString(filePath string) string

FileToString reads a file into a string

func Insert

func Insert(s []int, i, value int) []int

Insert an int into a slice of ints

Types

This section is empty.

Jump to

Keyboard shortcuts

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