gbuild

package
v1.15.4-0...-d475b66 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gbuild manages the build-in variables from "gf build".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string, def ...interface{}) interface{}

Get retrieves and returns the build-in binary variable with given name.

func GetString

func GetString(name string, def ...interface{}) string

GetString retrieves and returns the build-in binary variable of given name as string.

func GetVar

func GetVar(name string, def ...interface{}) *gvar.Var

GetVar retrieves and returns the build-in binary variable of given name as gvar.Var.

func Info

func Info() map[string]string

Info returns the basic built information of the binary as map. Note that it should be used with gf-cli tool "gf build", which injects necessary information into the binary.

func Map

func Map() map[string]interface{}

Map returns the custom build-in variable map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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