sparrow

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 10 Imported by: 0

README

sparrow

麻雀虽小,五脏俱全

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName       = "sparrow-app"
	Version       = "0.0.1"
	VerifyLicense = "false"
)

Functions

func GBuildVersion

func GBuildVersion() string

func GConfigProvider added in v0.1.1

func GConfigProvider() abstract.ConfigProvider

GConfigProvider return the program config provider

func GLoggerProvider

func GLoggerProvider() abstract.LoggerProvider

GLoggerProvider return the program logger provider

func GResourceDir

func GResourceDir() string

GResourceDir return to the program resource directory

func GRunEnv

func GRunEnv() runtime.RunEnv

GRunEnv 运行环境

func GWorkDir

func GWorkDir() string

GWorkDir return the program running directory

func Get added in v0.1.1

func Get(key string) (any, bool)

Get global variables

func GetString added in v0.1.1

func GetString(key string) string

GetString global variables

func InitApp

func InitApp(options ...core.Option) error

*

  • Initialize the program

func Set added in v0.1.1

func Set(key string, value any)

Set global variables

func SetupApp

func SetupApp()

SetupApp setup program called handler and starter run methed

Types

This section is empty.

Jump to

Keyboard shortcuts

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