Registry /
config / go-micro-plugins-v4-config-source-consul
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.
consul
✓ github.com/go-micro/plugins/v4/config/source/consul
Creates a Consul config source for Go Micro.
package main
import (
"github.com/go-micro/plugins/v4/config/source/consul"
"go-micro.dev/v4/config"
)
func main() {
src := consul.NewSource(
consul.WithAddress("127.0.0.1:8500"),
consul.WithPrefix("myapp"),
)
conf, _ := config.NewConfig(config.WithSource(src))
_ = conf
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.