代码拉取完成,页面将自动刷新
package main
import (
"fmt"
"os"
)
// type Config struct {
// Server Server
// }
// type Server struct {
// Etcd Etcd
// App App
// }
// type Etcd struct {
// Host string
// }
// type App struct {
// Name string
// Port string
// Ip string
// }
// 1
func main() {
fmt.Printf("os.Args: %v\n", os.Args)
// bzdebug.D("hello", "world")
// fmt.Println("-----------")
// bzdebug.D("hello,%s\n", "breeze")
// fmt.Println("-----------")
//var conf Config
//
//file := bzyaml.NewFile("./test/config.yml")
//file.Load(&conf)
//err := file.LoadAndListen(&conf, func(err error) {
// fmt.Println(conf)
// log.Println("err", err)
//})
//file.LoadAndListenWithTicker(context.Background(), &conf, 2*time.Second, func(err error) {
// log.Println("err", err)
//})
//
//tc := bztime.TickerNoExit(context.Background(), func(ctx context.Context) error {
// fmt.Println(conf)
// return nil
//}, 2*time.Second)
//defer tc.Close()
//
//for {
// select {
// case <-tc.C:
//
// }
//}
//
//fmt.Println(conf)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。