internal/app: update doc comments
All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m8s
Test / Hakurei (push) Successful in 3m7s
Test / Hpkg (push) Successful in 4m0s
Test / Sandbox (race detector) (push) Successful in 4m31s
Test / Hakurei (race detector) (push) Successful in 2m44s
Test / Flake checks (push) Successful in 1m26s

A lot of these comments are quite old and have not been updated to reflect changes.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-28 00:45:57 +09:00
parent 56d2029316
commit 49cc97f67c
4 changed files with 16 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ package app
import (
"context"
"fmt"
"log"
"sync"
"hakurei.app/hst"
@@ -22,6 +23,14 @@ func New(ctx context.Context, os sys.State) (App, error) {
return a, err
}
func MustNew(ctx context.Context, os sys.State) App {
a, err := New(ctx, os)
if err != nil {
log.Fatalf("cannot create app: %v", err)
}
return a
}
type app struct {
id *stringPair[state.ID]
sys sys.State