mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
restructured the project to comply community guideline, for others check release note
This commit is contained in:
8
internal/utils/must.go
Normal file
8
internal/utils/must.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package utils
|
||||
|
||||
func Must[T any](v T, err error) T {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return v
|
||||
}
|
||||
Reference in New Issue
Block a user