mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
14 lines
244 B
Go
14 lines
244 B
Go
package cache
|
|
|
|
import "strings"
|
|
|
|
var Separator = "-"
|
|
|
|
func MarshalAddresses(ips []string) []byte {
|
|
return []byte(strings.Join(ips, Separator))
|
|
}
|
|
|
|
func UnmarshalAddresses(data []byte) []string {
|
|
return strings.Split(string(data), Separator)
|
|
}
|