app

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch() string

func Dir

func Dir() string

func Executable

func Executable() string

func Fatal

func Fatal(s string)

func Go

func Go(fn func())

func LoadConf

func LoadConf[Conf any](filename string) Conf

func Name

func Name() string

func OS

func OS() string

func ParseCmdLine

func ParseCmdLine(version string) (confFile string, ok bool)

func Pid

func Pid() int

func Run

func Run[UserConf any](version string, run func(UserConf))

Types

type Conf

type Conf struct {
	LogLevel   string
	LogDir     string
	LogFile    string
	LogConsole bool
}

func (*Conf) Log

func (this *Conf) Log() ulog.Conf

Jump to

Keyboard shortcuts

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