1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 18:00:43 +00:00
This commit is contained in:
Darien Raymond 2017-11-23 10:41:02 +01:00
parent 47126cc632
commit 6017e46af4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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)