1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-13 12:34:10 -04:00

common.Must2

This commit is contained in:
Darien Raymond
2017-09-19 23:27:49 +02:00
parent 190adf1872
commit 8971e699d9
13 changed files with 103 additions and 74 deletions

View File

@@ -10,3 +10,9 @@ func Must(err error) {
panic(err)
}
}
func Must2(v interface{}, err error) {
if err != nil {
panic(err)
}
}