Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bufio"
"fmt"
"os"
"sort"
"strconv"
)
/**
* I like how languages such as Ruby and Python make it easy to iterate over
* their respective number primitives, e.g. the "Rails way":
*
* 10.times do |x|
* doSomething(x)
* end
*
* In short, the above code is nice in that when read in english, it's
* pretty straightforward compared to a for loop. It's also
{
"page": {
"title": "",
"description": "",
"template": {
"name": "template-base",
"type": "basic",
"version": "0.0.1"
},
"body": {