Skip to content

Instantly share code, notes, and snippets.

View iafan's full-sized avatar

Igor Afanasyev iafan

View GitHub Profile
@iafan
iafan / analyze-gopherjs
Created May 29, 2017 19:36
Small tool to report the size of Go packages in the GopherJS-compiled file
#!/usr/bin/perl
# This script can be used to see the size of each Go package
# in the JavaScript file complied by GopherJS.
#
# Run:
#
# ./analyze-gopherjs client.js
#
# to analyze client.js file, or:
@iafan
iafan / example.go
Last active May 23, 2017 04:38
Example of agenda testing
package example
import "errors"
type Movie struct {
TotalTime int `json:"total_time"`
CurrentTime int `json:"current_time"`
IsPlaying bool `json:"is_playing"`
}
@iafan
iafan / gensearchtypes.go
Last active August 29, 2016 19:35
Reimplementation of camilstore's gensearchtypes.sh in Go
package main
import (
"bytes"
"fmt"
"os"
"os/exec"
"regexp"
)