added support for dotenv files and config
CI / Detect changed paths (pull_request) Failing after 34m20s
CI / Infra unit tests, vet, and preview (pull_request) Has been skipped
CI / API unit tests and lint (pull_request) Failing after 34m36s
CI / Odin unit tests and build (pull_request) Failing after 34m49s

This commit is contained in:
2026-09-07 13:27:51 -06:00
parent 3803787fe8
commit ac2d30510c
7 changed files with 242 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
package main
import "core:fmt"
import "core:strings"
ErrorType :: enum {
Config,
API,
}
Error :: struct {
type: ErrorType,
message: string,
}
format_error :: proc(err: ^Error) -> string {
sb := strings.builder_make(context.temp_allocator)
return fmt.sbprintf(&sb, "[%s] => %s", err.type, err.message)
}