package main import ( "fmt" "io" "os" ) func printMessage(w io.Writer, msg string) { fmt.Fprint(w, msg) } func main() { printMessage(os.Stdout, "Hello MQTT\n") }