ソースを参照

release interface

v2ray 9 年 前
コミット
c7f6426c88
1 ファイル変更12 行追加0 行削除
  1. 12 0
      common/common.go

+ 12 - 0
common/common.go

@@ -1,3 +1,15 @@
 // Package common contains common utilities that are shared among other packages.
 // See each sub-package for detail.
 package common
+
+import (
+	"errors"
+)
+
+var (
+	ErrorAlreadyReleased = errors.New("Object already released.")
+)
+
+type Releasable interface {
+	Release()
+}