go-micro: github.com/micro/go-micro/util/net Index | Files

package net

import "github.com/micro/go-micro/util/net"

Index

Package Files

net.go

func HostPort Uses

func HostPort(addr string, port interface{}) string

HostPort format addr and port suitable for dial

func Listen Uses

func Listen(addr string, fn func(string) (net.Listener, error)) (net.Listener, error)

Listen takes addr:portmin-portmax and binds to the first available port Example: Listen("localhost:5000-6000", fn)

Package net imports 5 packages (graph) and is imported by 24 packages. Updated 2020-07-31. Refresh now. Tools for package owners.