Skip to content

Latest commit

 

History

History
169 lines (130 loc) · 5.86 KB

File metadata and controls

169 lines (130 loc) · 5.86 KB

Go

Menu: Home | bash | Compilers | Elixir | F# | Go | Haskell | OCaml | Octave | Perl | Python | R | Rust | Scala | SQL

The Short List

Editor/IDE Support

Web

Inbox

Setup

export GOPATH=$HOME

go get github.com/mattn/go-sqlite3
go get github.com/gorilla/mux
go get github.com/gorilla/pat
go get github.com/go-sql-driver/mysql; # http://github.com/go-sql-driver/mysql

---

golang-book.com
gpm
godep
goop

Tutorials

http://www.digitalocean.com/company/blog/get-your-development-team-started-with-go/

http://micknelson.wordpress.com/2012/11/14/a-tour-of-go-the-web-crawler-exercise/
http://www.golang-book.com/
http://play.golang.org/

http://gobyexample.com/

http://github.com/jimmahoney/golang-webserver/blob/master/webserver.go http://github.com/TeamTwilightSparkle/webserver http://blog.smartbear.com/web-development/how-to-build-a-web-service-in-5-minutes-with-go/

http://www.jeffreybolle.com/blog/create-a-web-app-using-google-go http://github.com/jeffreybolle/rebuilder

http://codegangsta.gitbooks.io/building-web-apps-with-go/

http://eager.io/blog/go-and-json/|Go and JSON

http://news.ycombinator.com/item?id=8413341

http://soryy.com/blog/2014/not-another-go-net-http-tutorial/

http://github.com/apsdehal/Konsoole http://news.ycombinator.com/item?id=8440755

http://github.com/sosedoff/pgweb/

go test -cover eg example-based factoring

gorename http://godoc.org/code.google.com/p/go.tools/cmd/gorename http://github.com/smartystreets/sublime-gorename

go/types

goimports http://blog.campoy.cat/2013/12/integrating-goimports-with-gosublime-on.html go oracle go tool pprof in 1.4

llgo

http://github.com/smartystreets/mafsa

Emacs and Go

http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch/ http://github.com/dominikh/go-mode.el http://medium.com/@olebedev/live-code-reloading-for-golang-web-projects-in-19-lines-8b2e8777b1ea http://news.ycombinator.com/item?id=8772636

Simple Crawler

package main

import (
	// "fmt"
	// "html/template"
	"fmt"
	"io/ioutil"
	"net/http"
	// "strconv"
	// "strings"
	// "time"
)

func crawl() {
	var url = "http://www.h4labs.com"

	resp, err := http.Get(url)
	if err != nil {
		// handle error
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	fmt.Print(string(body))
}

func main() {
	crawl()
}