mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08:00
15 lines
352 B
Go
15 lines
352 B
Go
// Based on https://github.com/grandcat/zeroconf
|
|
package zeroconf
|
|
|
|
import "strings"
|
|
|
|
func parseSubtypes(service string) (string, []string) {
|
|
subtypes := strings.Split(service, ",")
|
|
return subtypes[0], subtypes[1:]
|
|
}
|
|
|
|
// trimDot is used to trim the dots from the start or end of a string
|
|
func trimDot(s string) string {
|
|
return strings.Trim(s, ".")
|
|
}
|