-
https://github.com/golang/go/compare/master...dev.go2go
- dev.go2goブランチがmaster取り込んでいるのか知らんけど
- まぁでも1.15のベータでたし、ロックされてるか?
- わりかし、compilerの方も変更されてるな?
- テストか?
-
https://github.com/golang/go/tree/dev.go2go/src/cmd/compile/internal/types2
-
type2というやつがいる
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
module gist.github.com/tenntenn/2cca20a8b50dc27d74b918a4eb9c5d33 | |
require ( | |
"github.com/k0kubun/pp v3.0.1" | |
) |
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" | |
func main() { | |
var n int | |
var f float64 | |
var s string | |
var b bool | |
fmt.Printf("%#v %#v %#v %#v", n, f, s, b) |
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
GCFの違い | |
firebaseの方が高い視点で~ | |
PythonとかGoはFirebaseの方は対応予定なし | |
GCPの方が早い | |
Cloud TaskやスケジューラーはFirebaseの方から使えるようになるのか? | |
Firebaseはモバイル向けだから取り込む予定はないけど、GCPと組み合わせてスムーズに使えるようにする予定はある | |
Firebaseはモバイル、GCPはインフラ、その間をつなぐためにGCFがある | |
Cloud TaskとスケジューラーはFirebaseのUIに統合する予定はない |
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
// 次の関数fを実行しようと考えた場合、どのような結果になるか。 | |
func f() { | |
defer func() { | |
if r := recover(); r != nil { | |
fmt.Println(r) | |
} | |
}() | |
done := make(chan struct{}) | |
go func() { |
ハンズオンを行うために、以下の環境を整える必要があります。 ハンズオンをスムーズに行うために、可能な場合は以下の準備をお願いします。
- Googleアカウントの準備(Gmailが使える状態)
- Google App Engine SDK for Goのインストール
- Python 2.7のインストール
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
% go version [~/Desktop/go1.10] | |
go version devel +a99deed39b Mon Jan 8 18:06:27 2018 +0000 darwin/amd64 | |
% go test -bench . -benchmem | |
goos: darwin | |
goarch: amd64 | |
BenchmarkStringsBuilderWithoutGrow/10-4 500000 2796 ns/op 160 B/op 5 allocs/op | |
BenchmarkStringsBuilderWithoutGrow/50-4 200000 6942 ns/op 544 B/op 7 allocs/op | |
BenchmarkStringsBuilderWithoutGrow/100-4 200000 10813 ns/op 1056 B/op 8 allocs/op |
NewerOlder