internal/app: update doc comments

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 1be8de6f5c
commit da0459aca1
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