mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-24 02:14:00 +08:00
8 lines
130 B
Go
8 lines
130 B
Go
package leetcode
|
|
|
|
import "strings"
|
|
|
|
func defangIPaddr(address string) string {
|
|
return strings.Replace(address, ".", "[.]", -1)
|
|
}
|