package util

import "github.com/hpcloud/tail/util"

Index

Variables

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

util.go

Version
v1.0.0 (latest)
Published
Apr 28, 2016
Platform
darwin/amd64
Imports
4 packages
Last checked
3 weeks ago

Tools for package owners.