diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-28 00:45:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-28 00:45:57 +0900 |
| commit | da0459aca1988401c9e8743bedb349d6f8544aa3 (patch) | |
| tree | 7e5c3e74b4f8c145495a17f7922e90fdcb4a1add /internal/app/app.go | |
| parent | 1be8de6f5ca4c7e40f5999ce4f960010fc36acb1 (diff) | |
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>
Diffstat (limited to 'internal/app/app.go')
| -rw-r--r-- | internal/app/app.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 359a0ce8..506703c2 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -1,19 +1,16 @@ -// Package app defines the generic [App] interface. +// Package app implements high-level hakurei container behaviour. package app import ( - "context" - "log" "syscall" "time" "hakurei.app/hst" "hakurei.app/internal/app/state" - "hakurei.app/internal/sys" ) type App interface { - // ID returns a copy of [ID] held by App. + // ID returns a copy of [state.ID] held by App. ID() state.ID // Seal determines the outcome of config as a [SealedApp]. @@ -51,11 +48,3 @@ func (rs *RunState) SetStart() { now := time.Now().UTC() rs.Time = &now } - -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 -} |
