Whimsy

As it turns out, I'm really bad at following through with plans. I recently intended to dig through algorithms in Go, but here I find myself doing whimsical things with my time instead.

A couple of years ago I had a dubious amount of fun with a tiny bit of code that I wrote for generating phrases. I've since ported that to Go, with a package I am calling "whimsy".

package main

import (
    "fmt"

    "github.com/johncoder/whimsy"
)

func main() {
    fmt.Prinln("A phrase of 4 words:")
    fmt.Println(whimsy.NewPhrase(4))
}

Perhaps one of these days I'll find something more useful to do with my time.

Show Comments