AGENTS.md: no direct commits to main, all changes via feature branches
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Package globals provides shared global state for the application.
|
||||
package globals
|
||||
|
||||
import (
|
||||
@@ -5,19 +6,25 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
Appname string
|
||||
Version string
|
||||
// Appname is the global application name.
|
||||
Appname string //nolint:gochecknoglobals
|
||||
|
||||
// Version is the global application version.
|
||||
Version string //nolint:gochecknoglobals
|
||||
)
|
||||
|
||||
// Globals holds application-wide metadata.
|
||||
type Globals struct {
|
||||
Appname string
|
||||
Version string
|
||||
}
|
||||
|
||||
func New(lc fx.Lifecycle) (*Globals, error) {
|
||||
// New creates a new Globals instance from the global state.
|
||||
func New(_ fx.Lifecycle) (*Globals, error) {
|
||||
n := &Globals{
|
||||
Appname: Appname,
|
||||
Version: Version,
|
||||
}
|
||||
|
||||
return n, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user