Initial commit

This commit is contained in:
2023-12-01 13:48:47 +01:00
commit 33b14154cf
3 changed files with 38 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package utils
import (
"fmt"
"log"
"os"
)
func Must[T any](obj T, err error) T {
if err != nil {
log.Fatal(err)
}
return obj
}
func Init() []byte {
fmt.Println("Opening file...")
return Must(os.ReadFile("./input.txt"))
}