Remove old initial code

drew/mqtt-clients
Drew Bednar 4 months ago
parent 872213900a
commit 1ddac8b8bf

@ -1,15 +0,0 @@
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")
}

@ -1,17 +0,0 @@
package main
import (
"bytes"
"testing"
)
func TestPrintMessage(t *testing.T) {
buffer := bytes.Buffer{}
printMessage(&buffer, "Hello MQTT\n")
got := buffer.String()
want := "Hello MQTT\n"
if got != want {
t.Errorf("Error. Got %s but wanted %s", got, want)
}
}
Loading…
Cancel
Save