Skip to content

Instantly share code, notes, and snippets.

View xkcd.go
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strconv"
View The Go Programming Language Exercise 4.6.go
package main
import (
"fmt"
"unicode"
)
func removeDoubleSpaces(x []byte) []byte {
var spaces int
for i, v := range x {