initial commit

This commit is contained in:
2025-07-25 13:41:23 +02:00
commit 840de62902
27 changed files with 1772 additions and 0 deletions

11
model_response.go Normal file
View File

@ -0,0 +1,11 @@
package niri
type Response[T any] struct {
OK *T `json:"Ok"`
Err *string `json:"Err"`
}
func errResponse[T any](err error) Response[T] {
errStr := err.Error()
return Response[T]{Err: &errStr}
}