https://cloud.google.com/appengine/docs/go/gettingstarted/introduction?hl=ja
やったこと。
git clone https://github.com/ForceExamples/appengine-force-example
app.yamlに以下を追加
env_variables:
DART_PUB_SERVE: 'http://192.168.59.3:7777'
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 ( | |
"errors" | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
"net/rpc" | |
"time" |
step up go
- とりあえずここから
https://gist.github.com/mogeta/6154928
Goやってる人は「強い」感ある人が多いので気軽に参加出来る
弱者が集まる勉強会。ゆるい感じでいきます。主催者が一番の弱者
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
#GOPATHは好きなところで良い。 | |
echo "GOPATHに指定するpath" >> .bash_profile | |
brew install hg | |
go get github.com/robfig/revel | |
go get github.com/robfig/revel/revel | |
# テンプレートを作る | |
revel new myapp | |
# スタート | |
revel run myapp |
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
#gruntを使用して、サーバーをたてる。 | |
grunt serve | |
#testの実行 | |
grunt test | |
#ビルド minifyやファイルの統合などを行う | |
grunt build |
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 ( | |
"bytes" | |
"crypto/md5" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
) |
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
func (c App) Hello() revel.Result { | |
return c.Render() | |
} |