util

package
v0.0.0-...-e64dc14 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool bPool

BufferPool is a utility variable that provides bytes.Buffer objects. It embeds a sync.Pool object and provides a helper GetBuffer method that returns a cast *bytes.Buffer.

Functions

func UUID

func UUID() string

UUID generates a UUID-v4 string

Types

type RecorderHijacker

type RecorderHijacker interface {
	http.ResponseWriter
	http.Hijacker

	GetCode() int
	GetBody() *bytes.Buffer
	// contains filtered or unexported methods
}

func NewRecorderHijacker

func NewRecorderHijacker(w http.ResponseWriter) RecorderHijacker

Jump to

Keyboard shortcuts

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