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 ¶
This section is empty.
Functions ¶
func CreateObject ¶
CreateObject creates an object by its config. The config type must be registered through RegisterConfig().
func RegisterConfig ¶
func RegisterConfig(config interface{}, configCreator ConfigCreator) error
RegisterConfig registers a global config creator. The config can be nil but must have a type.
Types ¶
type ConfigCreator ¶
ConfigCreator is a function to create an object by a config.
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. |
Package errors is a drop-in replacement for Golang lib 'errors'.
|
Package errors is a drop-in replacement for Golang lib 'errors'. |
Package net contains common network utilities.
|
Package net contains common network utilities. |
Click to show internal directories.
Click to hide internal directories.