util

package
Version: v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = &Logger{log.New(os.Stderr, "", log.LstdFlags)}

Functions

func Fatal

func Fatal(format string, v ...interface{})

fatal is like panic except it displays only the current goroutine's stack.

func PartitionString

func PartitionString(s string, chunkSize int) []string

partitionString partitions the string into chunks of given size, with the last chunk of variable size.

Types

type Logger

type Logger struct {
	*log.Logger
}

Source Files

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