utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReleaseVersion = "None"
	BuildTS        = "None"
	GitHash        = "None"
	GitBranch      = "None"
)

Version information.

Functions

func HTML

func HTML(c *gin.Context, r render.HTMLRender, code int, name string, obj interface{})

func LogInfo

func LogInfo()

func NewHTMLRender

func NewHTMLRender(templ *template.Template, infos []TemplateInfo) render.HTMLRender

func PrintInfo

func PrintInfo()

Types

type TemplateInfo

type TemplateInfo struct {
	Name string
	Text string
}

type VersionInfo

type VersionInfo struct {
	ReleaseVersion string `json:"release_version"`
	BuildTime      string `json:"build_time"`
	BuildGitHash   string `json:"build_git_hash"`
	BuildGitBranch string `json:"build_git_branch"`
}

func GetVersionInfo

func GetVersionInfo() VersionInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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