/go-notepad

Write directly to notepad from Go. To hell with it.

Primary LanguageGo

Log to Notepad with Go

This is based on some things I saw floating around on Twitter and Hacker News, which ultimately were inspired by the post, Ray Tracing In Notepad.exe At 30 FPS by Kyle Halladay.

Screenshot of a tweet from steveklabnik showing a post where a developer is using Notepad to log application output.

I would feel remiss if I didn't help Go programs join in on the fun.

Why?

¯\_(ツ)_/¯

How?

Just use the provided io.Writer to do whatever you want. A demo of using it with Apex log is provided in cmd/demo/main.go.

    writer, _ := notepad.NewWriter()
    writer.Write([]byte("Hello, World!"))

Please don't use this for anything important.