util

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: MIT, Apache-2.0 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
}

Jump to

Keyboard shortcuts

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