From da0459aca1988401c9e8743bedb349d6f8544aa3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 28 Aug 2025 00:45:57 +0900 Subject: 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 --- internal/app/app.go | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'internal/app/app.go') 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 -} -- cgit v1.3.1