util.go 191 B

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