2014-01-01から1年間の記事一覧
年初に誓った、Go言語への書き換えを1月中に終わらせるという目標は、実際には20日位には完成しました。 思ったよりもGo言語の敷居は低かったです。 それで、PythonからGo言語に書き換えてみて、 Spinup時間は、まちまちだけどPythonよりも速くなった レ…
package main import ( "code.google.com/p/go-tour/wc" "strings" "fmt" ) func WordCount(s string) map[string]int { words := strings.Fields(s) fmt.Println(words) result := make(map[string]int) for i:=0; i
package main import "code.google.com/p/go-tour/pic" func Pic(dx, dy int) uint8 { z := make(uint8, dx) for x:=0; x
今年はGo言語を勉強して、現在Pythonで書いてるWebアプリをGoに書き換えます。 書き換え完了を2004年の1月中を目標にします。