标签/分类 "gui" 下的文章
GO 一些开源库
一个基于控制台的GUI界面,输入文本框和显示界面 Console GUI :https://www.jianshu.com/p/b9f686f5a317 一个MQTT SDK MQTT SDK :https://github.com/eclipse/paho.mqtt.golang 参考代码: package main import ( "fmt" //import the Paho Go MQTT library MQTT "github.com/eclipse/paho.mqtt.golang" "os" "time" ) //define a function for the default message handler var f MQTT.MessageHandler = func(client MQTT.Client, msg MQTT.Message) { fmt.Printf("TOPIC: %s\n", msg.Topic()) fmt.Printf("MSG: %s\n", msg.Payload()) }