コード例 #1
0
ファイル: gosensors.go プロジェクト: Xuxe/gosensors
func (f Feature) GetLabel() string {
	return C.GoString(C.sensors_get_label(f.chip, f.feature))
}
コード例 #2
0
ファイル: gosensors.go プロジェクト: md14454/gosensors
func (f Feature) GetLabel() string {
	clabel := C.sensors_get_label(f.chip, f.feature)
	golabel := C.GoString(clabel)
	C.free(unsafe.Pointer(clabel))
	return golabel
}