百合文库
首页 > 网文

我喜欢b站-1010(2)

2023-11-28 来源:百合文库
The version and compile date is stored in app variables and
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"

我喜欢b站-1010


"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

我喜欢b站-1010


猜你喜欢