1 Star 1 Fork 0

Breeze/bzv2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Breeze 提交于 2023-08-21 09:48 . A:test push
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)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/breezeHub/bzv2.git
git@gitee.com:breezeHub/bzv2.git
breezeHub
bzv2
bzv2
v0.0.4

搜索帮助