michelangelo

module
v0.0.0-...-32b1917 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0

README

michelangelo

介绍

michelangelo 将持续更新. 该项目是一个工具箱.

以后会沉淀成型的框架,请参照如下项目:

https://github.com/illidaris
组件
优雅启动

graceful 可以开启一个可控的应用

	app := NewIApplication(
		WithCmd("go"),
		WithPrintCh(),
		WithName("go app"),
		WithContext(context.Background()),
		WithWorkPath("./"),
		WithTimeOut(5*time.Second))
	err := app.Run("env")
	if err != nil {
		fmt.Print(err)
	}
日志

log 记录日志

	New(nil)
	log.Print(GetLevel())
	Debug("debug")
	Info("info")
	Error("error")

Directories

Path Synopsis
distributed

Jump to

Keyboard shortcuts

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