mirror of
https://github.com/fumiama/tienyik.git
synced 2026-06-28 23:10:23 +08:00
feat: add log & supporting packages
This commit is contained in:
8
internal/op/chain.go
Normal file
8
internal/op/chain.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package op
|
||||
|
||||
func Must[T any](x T, err error) T {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return x
|
||||
}
|
||||
Reference in New Issue
Block a user