1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

Host type is now a string

This commit is contained in:
Karan Misra 2014-03-24 03:04:58 +05:30
parent 6802eb3fa0
commit 8a556df770

View File

@ -10,23 +10,26 @@ import (
) )
// The Host type represents all the supported host types. // The Host type represents all the supported host types.
type Host int type Host string
const ( const (
// HostNull reprents a null host. // HostNull reprents a null host.
HostNull Host = iota HostNull Host = ""
// HostRPi represents the RaspberryPi. // HostRPi represents the RaspberryPi.
HostRPi HostRPi = "Raspberry Pi"
// HostBBB represents the BeagleBone Black. // HostBBB represents the BeagleBone Black.
HostBBB HostBBB = "BeagleBone Black"
// HostCubieTruck represents the Cubie Truck.
HostCubieTruck
// HostGalileo represents the Intel Galileo board. // HostGalileo represents the Intel Galileo board.
HostGalileo HostGalileo = "Intel Galileo"
// HostCubieTruck represents the Cubie Truck.
HostCubieTruck = "CubieTruck"
// HostRadxa represents the Cubie Truck.
HostRadxa = "Radxa"
) )
func execOutput(name string, arg ...string) (output string, err error) { func execOutput(name string, arg ...string) (output string, err error) {