luoheng
10/6/2019 - 7:33 AM

defangIPaddr


import "strings"

func defangIPaddr(address string) string {
    return strings.Join(strings.Split(address, "."), "[.]")
}