我喜欢b站-1010(2)
are supposed to be set during compile time. Typically this is done by the
install(bash/bat). Or date is binary modify time.
To set these manually use -ldflags together with -X, like in this example:
go install -ldflags "-X global/Build xxxxx"
*/
package global
import (
"flag"
"fmt"
"io"
"os"
"strings"
"sync"
"time"
"github.com/studygolang/studygolang/model"
"github.com/polarishttps://wimgs.ssjz8.com/upload/1119/config"
)
const (
DefaultCDNHttp = "http://test.static.studygolang.com/"
DefaultCDNHttps = "https://static.studygolang.com/"
)
var Build string
type app struct {
Name string
Build string
Version string
Date time.Time