package bsdp import ( "fmt" "golang.org/x/sys/unix" ) // MakeVendorClassIdentifier calls the sysctl syscall on macOS to get the // platform model. func MakeVendorClassIdentifier() (string, error) { // Fetch hardware model for class ID. hwModel, err := unix.Sysctl("hw.model") if err != nil { return "", err } return fmt.Sprintf("%s/i386/%s", AppleVendorID, hwModel), nil }