Skip to content

Instantly share code, notes, and snippets.

Kenta SUZUKI suzuken

Block or report user

Report or block suzuken

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View t.go
package main
import (
"flag"
"fmt"
"os"
"text/template"
)
func main() {
View retry.go
package main
import (
"flag"
"fmt"
"github.com/cenkalti/backoff"
"log"
"os"
"os/exec"
"time"
View sleep_server.go
package main
import (
"fmt"
"net/http"
"strconv"
"time"
)
func main() {
View go-tour-56.go
package main
import (
"fmt"
"math"
)
type ErrNegativeSqrt float64
func (e ErrNegativeSqrt) Error() string {
View go-tour-36.go
package main
import "code.google.com/p/go-tour/pic"
func Pic(dx, dy int) [][]uint8 {
rec := make([][]uint8, dy)
for i := 0; i < len(rec); i++ {
x := make([]uint8, dx)
View go-tour-44.go
package main
import "fmt"
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
i1 := 0
i2 := 1
return func() int {
View go-tour-58.go
package main
import (
"fmt"
"net/http"
)
type String string
type Struct struct {
View go-tour-48.go
package main
import "fmt"
func Cbrt(x complex128) complex128 {
var z complex128 = 1
for i:=0; i < 10000000; i++ {
z = z - ((z * z * z - x) / 3 * z * z)
}
return z
View go-tour-41.go
package main
import (
"code.google.com/p/go-tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
ret := make(map[string]int)
words := strings.Fields(s)
View go-tour-60.go
package main
import (
"code.google.com/p/go-tour/pic"
"image"
"image/color"
)
type Image struct{}
You can’t perform that action at this time.