func GetDeviceType(sysObjectID string) (t string) {
	t, ok := deviceTypes[sysObjectID]
	if false == ok {
		t = Unknow
	}
	return
}
GetDeviceType get device type base oid
package util
import (
	"bufio"
	"encoding/csv"
	"io"
	"log"
	"os"
	"strings"
)
var deviceTypes = make(map[string]string)
var deviceIcons = make(map[string]string)
func init() {
	deviceTypes[".1.3.6.1.4.1.311.1.1.3.1.1"] = "Windows"
	data, err := Asset("config/dt.csv")
	if err != nil {
	}
	dtStr := strings.Split(string(data), "\n")
	for _, line := range dtStr {
		items := strings.Split(line, ",")
		if len(items) > 1 {
			deviceTypes[items[0]] = items[1]
			deviceIcons[items[0]] = items[2]
		}
	}
	return
	csvFile, err := os.Open("config/dt.csv")
	if err != nil {
		HandleError(err)
		return
	}
	reader := csv.NewReader(bufio.NewReader(csvFile))
	defer csvFile.Close()
	for {
		line, error := reader.Read()
		if error == io.EOF {
			break
		} else if error != nil {
			log.Fatal(error)
		}
		deviceTypes[line[0]] = line[1]
		deviceIcons[line[0]] = line[2]
	}
}