Dmitri Shuralyov shurcooL

View imports.go
1 2 3 4 5 6 7 8 9 10
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
 
// Package astutil contains common utilities for working with the Go AST.
package astutil
 
import (
"bufio"
"bytes"
View gist:8486205
1 2 3 4 5 6 7 8 9 10
diff --git a/doc/builder.go b/doc/builder.go
index f772f54..c3b2203 100644
--- a/doc/builder.go
+++ b/doc/builder.go
@@ -560,6 +560,7 @@ func newPackage(dir *gosrc.Directory) (*Package, error) {
if pkg.ImportPath == "builtin" {
mode |= doc.AllDecls
}
+ mode = doc.AllDecls | doc.AllMethods
View story_of_my_life.go
1 2 3 4 5 6 7 8 9 10
for {
var hmmWhyNotDoItLikeThis Idea = myself.GetNextIdea()
 
software := hmmWhyNotDoItLikeThis.UnderlyingSoftware()
 
if software.IsOpenSource() || software.OwnerCompany().DoesEmploy(myself) {
ideaStatus, understanding = hmmWhyNotDoItLikeThis.Evaluate(software.GetSourceCode())
 
if ideaStatus == GoodIdea ||
(ideaStatus == BadIdea && understanding != nil) {
View main.go
1 2 3 4 5 6 7 8 9 10
// godoc_router
package main
 
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"net/http"
"net/http/httputil"
View main.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
"go/doc"
"go/format"
"go/token"
"time"
"code.google.com/p/go.tools/go/types"
. "gist.github.com/5286084.git"
View gopherjs_try.go
1 2 3 4 5 6 7 8 9 10
package main
 
//import "fmt"
import "github.com/shurcooL/go-goon"
 
func main() {
type Inner struct {
Field1 string
Field2 int
}
View main.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"net"
 
. "gist.github.com/5286084.git"
)
 
func main() {
netInterfaces, err := net.Interfaces()
View main.go
1 2 3 4 5 6 7 8 9 10
package gist8018045
 
import (
"fmt"
"go/build"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
View gist:7901265

This assumes three things have been done (they only need to be done once):

  1. Go is installed
  2. $GOPATH is set to some initially empty folder
  3. godep is installed

Replace <import path> with an import path pointing to a native Go command packaged with a Godeps file:

go get -u -d <import path>
View main.go
1 2 3 4 5 6 7 8 9 10
package gist7802150
 
import "strings"
 
type DepNode2I interface {
Update()
 
GetSources() []DepNode2I
 
addSink(*DepNode2)
Something went wrong with that request. Please try again.