package
0.0.0-20221211150325-2f2c2f34bedd
Repository: https://github.com/fengleng/mars.git
Documentation: pkg.go.dev

# README

Polaris Config

import (
 "log"

 "github.com/polarismesh/polaris-go"
 "github.com/fengleng/mars/contrib/config/polaris"
)

func main() {

 configApi, err := polaris.NewConfigAPI()
 if err != nil {
  log.Fatalln(err)
 }

 source, err := New(&configApi, WithNamespace("default"), WithFileGroup("default"), WithFileName("default.yaml"))

 if err != nil {
  log.Fatalln(err)
 }
 source.Load()
}

# Functions

No description provided by the author
WithFileGroup with polaris config fileGroup.
WithFileName with polaris config fileName.
WithNamespace with polaris config namespace.

# Structs

No description provided by the author

# Type aliases

Option is polaris config option.