app

package
v0.0.0-...-63d1355 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name           = "tgobot"
	DefaultVersion = "v0.0.9999-dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Context() context.Context
	Config() *config.Config
	Logger() slog.Logger
	TempPath(parts ...string) string
	Verbose() int
	AddDeferFunc(dfn DeferFunc)
	DefersApply()
}

func New

func New(ctx context.Context, confPath string, verbose int) (Context, error)

type DeferFunc

type DeferFunc func(ctx Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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