itgo.me

  • Go template examples

    up vote 35 down vote favorite 6 What website has some good, up to date resources on using Go html/templates, especially in regard to parsing html files and handling lists? I came across the Hoka Poka

  • go - `append` complexity

    up vote 9 down vote favorite 2 What is the computational complexity of this loop in the Go programming language? var a []int for i := 0 ; i < n ; i++ { a = append(a, i) } Does append operate in lin

  • go - Golang Event Model

    up vote 2 down vote favorite So my problem stems from I thought I'd be awfully clever and try and model hardware in Golang. Yes, use it for the sort of thing that in my day job I write in Verilog. To

  • go - select with channel <- <- channel

    up vote 5 down vote favorite I am curious why the following does not work. In general select with a default: prevents deadlock, but not in this case: package main import "fmt" func main () { a :

  • go - Beego - Endpoint Testing

    up vote 3 down vote favorite I am testing http custom endpoint for beego package test import ( "github.com/astaxie/beego" . "github.com/smartystreets/goconvey/convey" _ "golife-api-cons/r

  • JAVA - Go game algorithm

    up vote 0 down vote favorite I am trying to implement an algorithm to clear dead stones in my Go game. I hear that floodfill is the best to achieve this as using it recursively would be most effiecien

  • Closing channels in Go

    up vote 0 down vote favorite I am learning how channels work in Go and have stumbled upon a problem with closing the channels. This is a modified example from A Tour of Go, which generates n-1 fibonac

  • go tutorial select statement

    up vote 0 down vote favorite I'm working through the examples at tour.golang.org, and I've encountered this code I don't really understand: package main import "fmt" func fibonacci(c, quit chan int)

  • Go : concatenate file contents

    up vote 2 down vote favorite 1 I'm currently learning how to develop with Go (or golang) and I have a strange issue: I try to create a script looking inside an HTML file in order to get all the source

  • go - Golang combining errors

    up vote 6 down vote favorite 2 Lets say you have a simple function as so: func create(path string) error { if err := ioutil.WriteFile(path, []byte{}, 0666); err != nil { return