Help us shape the future of Go! Take the 2026 Go Developer Survey

duic-go-client

module
v0.0.0-...-3b934ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2018 License: Apache-2.0

README

= duic 配置中心 go 语言客户端

== Features

* 热加载配置
* 实时更新配置

== Get Started

----
go get -u github.com/zhudyos/duic-go-client
----

初始化配置信息

----
duic.BaseUri = "https://duic.zhudy.io/api/v1"
duic.Name = "unit-test"
duic.Profiles = "test"
duic.Init()
----

获取配置 API

----
duic.Bool("key")        // 获取一个 bool 配置
duic.Int("key")         // 获取一个 int 配置
duic.Float64("key")     // 获取一个 float64 配置
duic.String("key")      // 获取一个 string 配置
duic.Array("key")       // 获取一个数组配置
duic.Object("key")      // 获取一个对象配置
----

== See also

* https://github.com/zhudyos/duic[duic 配置中心]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL