common

package
v2.13.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package common contains common utilities that are shared among other packages. See each sub-package for detail.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrObjectReleased   = errors.New("Object already released.")
	ErrBadConfiguration = errors.New("Bad configuration.")
	ErrObjectNotFound   = errors.New("Object not found.")
	ErrDuplicatedName   = errors.New("Duplicated name.")
)

Functions

func Must

func Must(err error)

Must panics if err is not nil.

func Release

func Release(v interface{})

Release tries to release the given object.

Types

type Releasable

type Releasable interface {
	// Release releases all references to accelerate garbage collection.
	Release()
}

Releasable interface is for those types that can release its members.

Directories

Path Synopsis
Package buf provides a light-weight memory allocation mechanism.
Package buf provides a light-weight memory allocation mechanism.
Package bufio is a replacement of the standard golang package bufio.
Package bufio is a replacement of the standard golang package bufio.
Package crypto provides common crypto libraries for V2Ray.
Package crypto provides common crypto libraries for V2Ray.
internal
GENERATED CODE.
GENERATED CODE.
Package dice contains common functions to generate random number.
Package dice contains common functions to generate random number.
log
Package log is a generated protocol buffer package.
Package log is a generated protocol buffer package.
Package net is a generated protocol buffer package.
Package net is a generated protocol buffer package.
Package protocol is a generated protocol buffer package.
Package protocol is a generated protocol buffer package.
Package serial is a generated protocol buffer package.
Package serial is a generated protocol buffer package.
web

Jump to

Keyboard shortcuts

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