1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 04:25:44 -05:00
This commit is contained in:
Darien Raymond
2017-11-23 10:41:02 +01:00
parent 47126cc632
commit 6017e46af4

View File

@@ -11,6 +11,7 @@ func Must(err error) {
}
}
// Must2 panics if the second parameter is not nil.
func Must2(v interface{}, err error) {
if err != nil {
panic(err)