util.go 144 B

123456789
  1. package mongo
  2. import "strings"
  3. const mongoAddrSep = ","
  4. func FormatAddr(hosts []string) string {
  5. return strings.Join(hosts, mongoAddrSep)
  6. }