Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
agollo
✓ github.com/philchia/agollo/v4
Initializes an Apollo client and retrieves a configuration value.
package main
import (
"fmt"
agollo "github.com/philchia/agollo/v4"
)
func main() {
client := agollo.NewClient(&agollo.Conf{
AppID: "SampleApp",
Cluster: "default",
NameSpaceNames: []string{"application"},
MetaAddr: "http://localhost:8080",
})
client.Start()
val := client.GetString("key", agollo.WithDefault("default"))
fmt.Println(val)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
4.1.5latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.