mirror of https://github.com/v2ray/v2ray-core
release interface
parent
be90c04deb
commit
c7f6426c88
|
@ -1,3 +1,15 @@
|
||||||
// Package common contains common utilities that are shared among other packages.
|
// Package common contains common utilities that are shared among other packages.
|
||||||
// See each sub-package for detail.
|
// See each sub-package for detail.
|
||||||
package common
|
package common
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ErrorAlreadyReleased = errors.New("Object already released.")
|
||||||
|
)
|
||||||
|
|
||||||
|
type Releasable interface {
|
||||||
|
Release()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue