mdbc/utils.go
2023-06-22 23:14:51 +08:00

9 lines
181 B
Go

package mdbc
import "fmt"
// applyURI get mongo uri from address and port
func applyURI(address string, port int) string {
return fmt.Sprintf("mongodb://%s:%d", address, port)
}