common

package
v2.16.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 3 Imported by: 5 modules, 28 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 CreateObject

func CreateObject(ctx context.Context, config interface{}) (interface{}, error)

func Must

func Must(err error)

Must panics if err is not nil.

func RegisterConfig

func RegisterConfig(config interface{}, configCreator creator) error

Types

This section is empty.

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 net contains common network utilities.
Package net contains common network utilities.
web

Jump to

Keyboard shortcuts

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