From 8a556df77076390ccec003a0d51cc5ed1792fd73 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Mon, 24 Mar 2014 03:04:58 +0530 Subject: [PATCH] Host type is now a string --- detect.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/detect.go b/detect.go index 0d72ad3..7e3d3d6 100644 --- a/detect.go +++ b/detect.go @@ -10,23 +10,26 @@ import ( ) // The Host type represents all the supported host types. -type Host int +type Host string const ( // HostNull reprents a null host. - HostNull Host = iota + HostNull Host = "" // HostRPi represents the RaspberryPi. - HostRPi + HostRPi = "Raspberry Pi" // HostBBB represents the BeagleBone Black. - HostBBB - - // HostCubieTruck represents the Cubie Truck. - HostCubieTruck + HostBBB = "BeagleBone Black" // 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) {