application

package module
v0.0.0-...-8e99def Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 4

README

application


Copyright (c) 2024 Archivage Numérique

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New(name string, opts ...Option) (*Application, error)

func (*Application) BuiltAt

func (a *Application) BuiltAt() time.Time

func (*Application) Environment

func (a *Application) Environment() string

func (*Application) ID

func (a *Application) ID() string

func (*Application) LongDesc

func (a *Application) LongDesc() string

func (*Application) LookupEnv

func (a *Application) LookupEnv(key string) (string, bool)

func (*Application) Name

func (a *Application) Name() string

func (*Application) ShortDesc

func (a *Application) ShortDesc() string

func (*Application) StartedAt

func (a *Application) StartedAt() time.Time

func (*Application) Version

func (a *Application) Version() string

type Option

type Option func(*Application) error

func WithBuiltAt

func WithBuiltAt(builtAt string) Option

func WithID

func WithID(id string) Option

func WithLongDesc

func WithLongDesc(desc string) Option

func WithShortDesc

func WithShortDesc(desc string) Option

func WithVersion

func WithVersion(version string) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL