webapp
Some checks failed
Docker Build and Publish / publish (push) Failing after 1m33s

This commit is contained in:
Eugene Howe
2026-02-17 09:47:30 -05:00
parent af09672ee3
commit b0957bfa49
102 changed files with 4213 additions and 378 deletions

12
internal/utils/must.go Normal file
View File

@@ -0,0 +1,12 @@
package utils
import "go.uber.org/zap"
func Must[T any](res T, err error) func(logger *zap.Logger) T {
return func(logger *zap.Logger) T {
if err != nil {
logger.Fatal("Fatal error", zap.Error(err))
}
return res
}
}