Run using the explorer, here.
First Page:
query {
topic(name: "go") {
repositories(first: 100, orderBy: {field: STARGAZERS, direction:DESC}) {
edges {
node {Run using the explorer, here.
First Page:
query {
topic(name: "go") {
repositories(first: 100, orderBy: {field: STARGAZERS, direction:DESC}) {
edges {
node {This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io, fmt) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64.
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "net/http/httptest" | |
| "net/http/httptrace" | |
| "os" | |
| ) |
| diff --git a/src/pkg/encoding/xml/read.go b/src/pkg/encoding/xml/read.go | |
| index c216824..09f0d85 100644 | |
| --- a/src/pkg/encoding/xml/read.go | |
| +++ b/src/pkg/encoding/xml/read.go | |
| @@ -451,6 +451,51 @@ func (p *Decoder) unmarshalPath(tinfo *typeInfo, sv reflect.Value, parents []str | |
| Loop: | |
| for i := range tinfo.fields { | |
| finfo := &tinfo.fields[i] | |
| + if finfo.flags&fAttr != 0 { | |
| + if len(finfo.parents) > len(parents) + 1 { |
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/mgo.v2" | |
| "gopkg.in/mgo.v2/bson" | |
| "time" | |
| ) | |
| type Content struct { |
| #!/usr/bin/env bash | |
| #Code adapted from https://gist.github.com/yangj1e/3641843c758201ebbc6c (Modified to Python3.5) | |
| cd ~ | |
| #wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh | |
| wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.4.1-Linux-x86_64.sh | |
| bash Anaconda3-2.4.1-Linux-x86_64.sh -b | |
| echo 'PATH="/home/ubuntu/anaconda3/bin:$PATH"' >> .bashrc | |
| . .bashrc |