This file contains hidden or 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
| $ ./structure-test-darwin-amd64 | |
| Please supply path to image or tarball to test against |
This file contains hidden or 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
| $ make |
This file contains hidden or 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
| $ dep ensure |
This file contains hidden or 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
| $ dep init |
This file contains hidden or 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
| $ git reset --hard 48ed3fffe3f5a215047a8ee3a312401494039bac |
This file contains hidden or 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
| $ git clone git@github.com:GoogleCloudPlatform/container-structure-test.git |
This file contains hidden or 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
| ticker := time.NewTicker(3 * time.Second) | |
| stop := make(chan bool) | |
| func (t *Termbox) RefreshRateDraw(ticker *time.Ticker, stop chan bool) { | |
| for { | |
| select { | |
| case <-ticker.C: | |
| t.UpdateData() | |
| t.Draw() | |
| case <-stop: |
This file contains hidden or 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 (t *Termbox) Draw() { | |
| termbox.Clear(color["default"], color["default"]) | |
| commandHistory := t.Commands | |
| // 検索フォームの表示 | |
| displaySearchForm := "QUERY>" | |
| t.Print(0, 0, style["fg"], style["bg"], displaySearchForm) | |
| t.PrintSearchQuery(len(displaySearchForm), 0, style["fg"], style["bg"]) |
This file contains hidden or 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 ( | |
| "github.com/nsf/termbox-go" | |
| ) | |
| func main() { | |
| defer termbox.Close() | |
| err := termbox.Init() |
This file contains hidden or 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
| // テーブルに指定したIDのレコードがあれば、Contentsを返す | |
| // 無かった場合、新たなレコードをInsertし、結果のContentsを返す | |
| def hoge(id: Int): String = { | |
| Await.result(database.findById(id), Duration.Inf) match { | |
| case Some(result) => { | |
| // idに合致するレコードがあればcontentsを返す | |
| return result.contents | |
| } | |
| case None => { | |
| val table_entity = TableEntity(id, "コンテンツ") |