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
{ | |
// パッケージの名前 | |
"name": "パッケージ名", | |
// パッケージのバージョン | |
"version": "1.0.0", | |
// パッケージの説明 | |
"description": "パッケージの説明文", | |
// 項目はパッケージの中で最初に呼ばれるモジュールのID | |
"main": "./dist/hoge.js", | |
// scriptコマンド |
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 tictactoego | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/datastore" | |
"html/template" | |
"google.golang.org/appengine/taskqueue" |
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
import "fmt" | |
type Language struct { | |
Name string | |
LangType string | |
} | |
// コンストラクタ | |
// 戻り値として返すのは、構造体のポイントであることに注意 | |
func NewLanguage(name string, langType string) *Language { |
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
sample | |
|_resources <-以下に各種類別静的ファイル(今回はcssのみ) | |
| |_css | |
|_view | |
| |_index.html(テンプレート) | |
|_main.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
package main | |
import ( | |
"net/http" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/user" | |
"html/template" | |
"fmt" | |
) |
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() { | |
i := 1 | |
for i < 101 { |
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
apprppt | |
|_source | |
| |_index.js | |
| |_index.ts | |
| |_package.json | |
| |_tsconfig.json | |
|_view | |
| |_index.html | |
|_main.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
go get cloud.google.com/go/bigquery |
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 ( | |
"encoding/json" | |
"fmt" | |
"github.com/joho/godotenv" | |
"github.com/sendgrid/sendgrid-go" | |
"log" | |
"os" | |
) |
OlderNewer