advent

package
Version: v0.0.0-...-d1ebb21 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(tmpl string, a ...interface{})

Debug prints a debug message to the console when the environment variable `$DEBUG` is set.

func ReadFile

func ReadFile(filename string) ([]string, error)

ReadFile returns the lines of text in a given file, skipping blank lines.

func StringsToInts

func StringsToInts(input []string) ([]int, error)

StringsToInts turns a slice of strings into a slice of ints.

func Truncate

func Truncate(input string, length int) string

Truncate keeps crazy long strings from getting out of control.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL