Registry /
cloud / nacos-group-nacos-sdk-go
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.
nacos
✓ github.com/nacos-group/nacos-sdk-go
Create a Nacos config client and fetch a configuration.
package main
import (
"fmt"
"github.com/nacos-group/nacos-sdk-go/clients"
"github.com/nacos-group/nacos-sdk-go/common/constant"
)
func main() {
client, err := clients.CreateConfigClient(map[string]interface{}{
"serverAddr": "localhost:8848",
})
if err != nil {
panic(err)
}
content, _ := client.GetConfig(constant.ConfigParam{
DataId: "example",
Group: "DEFAULT_GROUP",
})
fmt.Println(content)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.6latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.