mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
13 lines
303 B
Go
13 lines
303 B
Go
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, ".")
|
|
}
|