Adding common flags
parent
245f99d333
commit
44810ce030
@ -1,7 +1,13 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"git.runcible.io/learning/learn_mqtt_go/common"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("MQTT Publisher")
|
||||
flag.Parse()
|
||||
fmt.Printf("MQTT Host: %s\nMQTT Port: %s\n", *common.BrokerHost, *common.BrokerPort)
|
||||
}
|
||||
|
@ -1,7 +1,13 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"git.runcible.io/learning/learn_mqtt_go/common"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("MQTT Subscriber")
|
||||
flag.Parse()
|
||||
fmt.Printf("MQTT Host: %s\nMQTT Port: %s\n", *common.BrokerHost, *common.BrokerPort)
|
||||
}
|
||||
|
Loading…
Reference in New Issue