This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "encoding/xml" | |
type MyRespEnvelope struct { | |
XMLName xml.Name | |
Body Body | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"strconv" | |
"os" | |
) | |
func main() { | |
//Enter your code here. Read input from STDIN. Print output to STDOUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
"math" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"bufio" | |
"strconv" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Day 1: The Tyranny of the Rocket Equation | |
package main | |
import ( | |
"fmt" | |
) | |
func FuelRequirements(value int) int { | |
return (value / 3) - 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip.addr == 127.0.0.1 and tcp.port == 3306 and mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query/sexp/parser.go:18:2: cannot find package "github.com/badgerodon/peg" in any of: | |
/usr/local/go/src/github.com/badgerodon/peg (from $GOROOT) | |
/home/willy.aguirre/go/src/github.com/badgerodon/peg (from $GOPATH) | |
query/graphql/http.go:8:2: cannot find package "github.com/dennwc/graphql/gqlerrors" in any of: | |
/usr/local/go/src/github.com/dennwc/graphql/gqlerrors (from $GOROOT) | |
/home/willy.aguirre/go/src/github.com/dennwc/graphql/gqlerrors (from $GOPATH) | |
query/graphql/graphql.go:13:2: cannot find package "github.com/dennwc/graphql/language/ast" in any of: | |
/usr/local/go/src/github.com/dennwc/graphql/language/ast (from $GOROOT) | |
/home/willy.aguirre/go/src/github.com/dennwc/graphql/language/ast (from $GOPATH) | |
query/graphql/graphql.go:14:2: cannot find package "github.com/dennwc/graphql/language/lexer" in any of: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math" | |
"fmt" | |
) | |
func main() { | |
maxInt8 := math.MaxInt8 |
NewerOlder