libx

package module
v0.0.0-...-074ee30 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 6 Imported by: 1

README

libx

Common golang framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*cli.App
	// contains filtered or unexported fields
}

func MustGetApp

func MustGetApp(ctx *cli.Context) *App

func NewApp

func NewApp(name, description, versionStr, author string) *App

func NewCustomApp

func NewCustomApp(cApp *cli.App) *App

func (*App) BuildInfo

func (app *App) BuildInfo() *BuildInfo

func (*App) Serve

func (app *App) Serve(port uint32) error

func (*App) StopServer

func (app *App) StopServer() error

func (*App) WithBuildInfo

func (app *App) WithBuildInfo(bi *BuildInfo) *App

func (*App) WithCommands

func (app *App) WithCommands(cmds ...*cli.Command) *App

func (*App) WithServer

func (app *App) WithServer(server *httpx.Server) *App

type BuildInfo

type BuildInfo struct {
	GitTag    string `json:"gitTag"`
	GitHash   string `json:"gitHash"`
	GitBranch string `json:"gitBranch"`
	BuildTime string `json:"buildTime"`
	BuildHost string `json:"buildHost"`
	BuildUser string `json:"buildUser"`
}

Directories

Path Synopsis
cmd
tu
mg
pg
tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳