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.

              Source Files