starter

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 12 Imported by: 136

README

starter

这是 starter 框架的核心模块,提供自动配置、日志初始化等功能.

常用属性

名称 用途 备注
debug.enabled 启用调试功能
debug.log-properties 把属性打印到日志中 需要配置 "debug.enabled" 为true
debug.log-environment 把 环境变量 打印到日志中 需要配置 "debug.enabled" 为true
debug.log-arguments 把 命令行参数 打印到日志中 需要配置 "debug.enabled" 为true

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configen

func Configen(args []string)

Configen 运行自动配置代码生成工具

func Module

func Module() application.Module

Module 导出模块 github.com/starter-go/starter

Types

type Initializer

type Initializer interface {
	MainModule(mod application.Module) Initializer
	WithPanic(enable bool) Initializer
	SetArguments(args []string) Initializer

	GetAttributes() attributes.Table
	GetEnvironment() environment.Table
	GetParameters() parameters.Table
	GetProperties() properties.Table

	Run() error
}

Initializer 表示应用程序的初始化对象

func Init

func Init(args []string) Initializer

Init 返回一个新的应用初始化工具

Directories

Path Synopsis
fs
gen
src

Jump to

Keyboard shortcuts

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