├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── README.md ├── apm ├── .vscode │ └── launch.json ├── demo1 │ ├── .env │ ├── README.md │ ├── go.mod │ ├── go.sum │ └── main.go ├── demo2 │ ├── .env │ ├── README.md │ ├── go.mod │ ├── go.sum │ └── main.go └── demo3 │ ├── .env │ ├── README.md │ ├── go.mod │ ├── go.sum │ └── main.go ├── atomic ├── main └── main.go ├── bazel ├── BUILD ├── README.md ├── WORKSPACE ├── adder.go ├── adder_test.go └── main.go ├── bazel2 ├── BUILD ├── README.md ├── WORKSPACE ├── adder.go ├── adder_test.go ├── deps.bzl ├── go.mod ├── go.sum └── main.go ├── challenge-maximum-square ├── main.go └── main_test.go ├── concurrency-goroutines-await └── main.go ├── concurrency ├── main.go └── main_test.go ├── consul ├── README.md ├── docker-compose.yml ├── kv │ └── main.go ├── ping-client │ └── main.go ├── ping-service │ ├── guide.md │ └── main.go ├── resolver │ └── main.go └── user-service │ └── main.go ├── context ├── cancel.go └── timeout.go ├── data ├── desired-learning-outcome.docx └── list-regions.csv ├── demo-channel └── main.go ├── demo-crawler ├── crawler │ ├── data │ │ ├── thesaigontimes.html │ │ └── vietnamnet.html │ ├── lib.go │ ├── parser.go │ ├── testutil.go │ ├── thesaigontimes.vn.go │ ├── thesaigontimes.vn_test.go │ ├── vietnamnet.vn.go │ └── vietnamnet.vn_test.go ├── docs │ └── script.sql ├── helper │ ├── sql.go │ ├── util.go │ └── watcher.go ├── main.go └── model │ ├── article.go │ └── url.go ├── demo-id-services ├── README.md ├── k6.js ├── main └── main.go ├── demo-note ├── main.go └── model │ └── model.go ├── demo-rest2 ├── main.go └── model │ └── model.go ├── demo-restapi ├── config │ └── const.go ├── handler │ ├── noteCreate.go │ └── noteCreate_test.go ├── main.go ├── model │ ├── note.go │ └── user.go └── repo │ └── note.go ├── demo-simple-crawler ├── data.go ├── main.go ├── model.go ├── parser.go ├── program1.go ├── program2.go └── program3.go ├── go-patterns └── custom_json_marshal.diff ├── go.mod ├── go.sum ├── google └── sheet │ ├── credentials-old.json │ ├── credentials.json │ ├── quickstart.go │ └── token.json ├── gorountine-pipline └── main.go ├── grpc-proxy └── main.go ├── isolation └── main.go ├── jupyter └── .ipynb_checkpoints │ └── basic-checkpoint.ipynb ├── kafka └── main.go ├── mongodb └── main.go ├── mysql └── main.go ├── panic-recover └── main.go ├── pointer-assignment └── main.go ├── pointer-exercise ├── convert-cvs-to-yaml.go ├── data.csv ├── main_v1.go ├── main_v2.go ├── output.yml └── small.csv ├── pointer-multi-lang ├── README.md ├── pointer.go ├── pointer.java ├── pointer.js └── pointer.php ├── prompt └── main.go ├── race-condition ├── .gitignore ├── README.md ├── race1.go ├── race2.go └── race3.go ├── real-world-logging └── main.go ├── reflection └── main.go ├── simple-crawler ├── crawler.go └── crawler.php ├── simple-logging └── main.go ├── singleton-pattern └── main.go ├── string ├── main.go └── text ├── struct └── main.go ├── tdd-example └── helper │ ├── helper.go │ ├── helper_test.go │ ├── math.go │ ├── math_test.go │ ├── search.go │ └── search_test.go ├── tutorials ├── README.md ├── demo1.go ├── demo2.go └── k6-demo1-script.js ├── voucher ├── .env ├── README.md ├── _sql │ └── schema.sql ├── _test │ └── k6.js ├── main.go ├── model │ └── voucher.go └── storage │ └── voucher.go ├── voucher_grpc ├── .env ├── README.md ├── _sql │ └── schema.sql ├── _test │ └── k6.js ├── main.go ├── model │ └── voucher.go ├── proto │ ├── voucher.pb.go │ └── voucher.proto ├── storage │ └── voucher.go └── test │ └── client.go ├── week1-exercise ├── helper │ ├── helpers.go │ ├── helpers_test.go │ ├── map.go │ ├── map_test.go │ ├── math.go │ ├── math_test.go │ ├── search.go │ ├── search_test.go │ ├── slice.go │ └── slice_test.go └── main.go ├── week2-exercise-abc ├── crawler │ ├── dataset │ │ └── saigontimes_url_1.html │ ├── lib.go │ ├── parser.go │ ├── testutil.go │ ├── thesaigontimes.vn.go │ └── thesaigontimes.vn_test.go ├── main.go └── model │ ├── article.go │ └── url.go ├── week2-exercise ├── .env ├── crawler │ ├── data │ │ ├── thesaigontimes.html │ │ └── vietnamnet.html │ ├── lib.go │ ├── parser.go │ ├── testutil.go │ ├── thesaigontimes.vn.go │ ├── thesaigontimes.vn_test.go │ ├── vietnamnet.vn.go │ └── vietnamnet.vn_test.go ├── docs │ └── script.sql ├── helper │ ├── sql.go │ ├── util.go │ └── watcher.go ├── main.go └── model │ ├── article.go │ └── url.go ├── week3-demo ├── main.go └── model │ └── note.go ├── week3-exercise ├── .env.example ├── handler │ ├── increment.go │ ├── note.go │ ├── note_test.go │ ├── ping.go │ ├── route.go │ └── user.go ├── helper │ └── common.go ├── k6 │ ├── get-increment-id.js │ └── script.js ├── main.go ├── mock │ └── note.go ├── model │ ├── note.go │ ├── setting.go │ └── user.go └── repo │ ├── note.go │ ├── setting.go │ └── user.go ├── week3-offline └── main.go ├── week3-simple-http └── .gitignore ├── week4-exercise-db ├── client │ └── main.go ├── model │ └── note.go ├── proto │ ├── note.pb.go │ └── note.proto └── server │ └── main.go ├── week4-exercise ├── README.md ├── client │ └── main.go ├── client_default ├── gateway │ └── main.go ├── note │ └── NoteOuterClass.java ├── proto │ ├── note.pb.go │ ├── note.pb.gw.go │ └── note.proto ├── protoc.sh ├── server │ └── main.go └── server_default ├── week5-exercise-db ├── README.md ├── client.sh ├── client │ └── main.go ├── main ├── model │ └── note.go ├── proto │ ├── note.micro.go │ ├── note.pb.go │ └── note.proto ├── protoc.sh ├── server.sh └── server │ └── main.go └── week5-exercise ├── README.md ├── client.go ├── client.sh ├── docker-compose.yml ├── proto ├── greeter.micro.go ├── greeter.pb.go └── greeter.proto ├── server.sh └── service.go /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | bazel-* 4 | access.log 5 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/README.md -------------------------------------------------------------------------------- /apm/.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/.vscode/launch.json -------------------------------------------------------------------------------- /apm/demo1/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo1/.env -------------------------------------------------------------------------------- /apm/demo1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo1/README.md -------------------------------------------------------------------------------- /apm/demo1/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo1/go.mod -------------------------------------------------------------------------------- /apm/demo1/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo1/go.sum -------------------------------------------------------------------------------- /apm/demo1/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo1/main.go -------------------------------------------------------------------------------- /apm/demo2/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo2/.env -------------------------------------------------------------------------------- /apm/demo2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo2/README.md -------------------------------------------------------------------------------- /apm/demo2/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo2/go.mod -------------------------------------------------------------------------------- /apm/demo2/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo2/go.sum -------------------------------------------------------------------------------- /apm/demo2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo2/main.go -------------------------------------------------------------------------------- /apm/demo3/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo3/.env -------------------------------------------------------------------------------- /apm/demo3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo3/README.md -------------------------------------------------------------------------------- /apm/demo3/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo3/go.mod -------------------------------------------------------------------------------- /apm/demo3/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo3/go.sum -------------------------------------------------------------------------------- /apm/demo3/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/apm/demo3/main.go -------------------------------------------------------------------------------- /atomic/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/atomic/main -------------------------------------------------------------------------------- /atomic/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/atomic/main.go -------------------------------------------------------------------------------- /bazel/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/BUILD -------------------------------------------------------------------------------- /bazel/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/README.md -------------------------------------------------------------------------------- /bazel/WORKSPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/WORKSPACE -------------------------------------------------------------------------------- /bazel/adder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/adder.go -------------------------------------------------------------------------------- /bazel/adder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/adder_test.go -------------------------------------------------------------------------------- /bazel/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel/main.go -------------------------------------------------------------------------------- /bazel2/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/BUILD -------------------------------------------------------------------------------- /bazel2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/README.md -------------------------------------------------------------------------------- /bazel2/WORKSPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/WORKSPACE -------------------------------------------------------------------------------- /bazel2/adder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/adder.go -------------------------------------------------------------------------------- /bazel2/adder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/adder_test.go -------------------------------------------------------------------------------- /bazel2/deps.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/deps.bzl -------------------------------------------------------------------------------- /bazel2/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/go.mod -------------------------------------------------------------------------------- /bazel2/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/go.sum -------------------------------------------------------------------------------- /bazel2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/bazel2/main.go -------------------------------------------------------------------------------- /challenge-maximum-square/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/challenge-maximum-square/main.go -------------------------------------------------------------------------------- /challenge-maximum-square/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/challenge-maximum-square/main_test.go -------------------------------------------------------------------------------- /concurrency-goroutines-await/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/concurrency-goroutines-await/main.go -------------------------------------------------------------------------------- /concurrency/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/concurrency/main.go -------------------------------------------------------------------------------- /concurrency/main_test.go: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /consul/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/README.md -------------------------------------------------------------------------------- /consul/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/docker-compose.yml -------------------------------------------------------------------------------- /consul/kv/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/kv/main.go -------------------------------------------------------------------------------- /consul/ping-client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/ping-client/main.go -------------------------------------------------------------------------------- /consul/ping-service/guide.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/ping-service/guide.md -------------------------------------------------------------------------------- /consul/ping-service/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/ping-service/main.go -------------------------------------------------------------------------------- /consul/resolver/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/resolver/main.go -------------------------------------------------------------------------------- /consul/user-service/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/consul/user-service/main.go -------------------------------------------------------------------------------- /context/cancel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/context/cancel.go -------------------------------------------------------------------------------- /context/timeout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/context/timeout.go -------------------------------------------------------------------------------- /data/desired-learning-outcome.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/data/desired-learning-outcome.docx -------------------------------------------------------------------------------- /data/list-regions.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/data/list-regions.csv -------------------------------------------------------------------------------- /demo-channel/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-channel/main.go -------------------------------------------------------------------------------- /demo-crawler/crawler/data/thesaigontimes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/data/thesaigontimes.html -------------------------------------------------------------------------------- /demo-crawler/crawler/data/vietnamnet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/data/vietnamnet.html -------------------------------------------------------------------------------- /demo-crawler/crawler/lib.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/lib.go -------------------------------------------------------------------------------- /demo-crawler/crawler/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/parser.go -------------------------------------------------------------------------------- /demo-crawler/crawler/testutil.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/testutil.go -------------------------------------------------------------------------------- /demo-crawler/crawler/thesaigontimes.vn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/thesaigontimes.vn.go -------------------------------------------------------------------------------- /demo-crawler/crawler/thesaigontimes.vn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/thesaigontimes.vn_test.go -------------------------------------------------------------------------------- /demo-crawler/crawler/vietnamnet.vn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/vietnamnet.vn.go -------------------------------------------------------------------------------- /demo-crawler/crawler/vietnamnet.vn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/crawler/vietnamnet.vn_test.go -------------------------------------------------------------------------------- /demo-crawler/docs/script.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/docs/script.sql -------------------------------------------------------------------------------- /demo-crawler/helper/sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/helper/sql.go -------------------------------------------------------------------------------- /demo-crawler/helper/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/helper/util.go -------------------------------------------------------------------------------- /demo-crawler/helper/watcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/helper/watcher.go -------------------------------------------------------------------------------- /demo-crawler/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/main.go -------------------------------------------------------------------------------- /demo-crawler/model/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/model/article.go -------------------------------------------------------------------------------- /demo-crawler/model/url.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-crawler/model/url.go -------------------------------------------------------------------------------- /demo-id-services/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo-id-services/k6.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-id-services/k6.js -------------------------------------------------------------------------------- /demo-id-services/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-id-services/main -------------------------------------------------------------------------------- /demo-id-services/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-id-services/main.go -------------------------------------------------------------------------------- /demo-note/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-note/main.go -------------------------------------------------------------------------------- /demo-note/model/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-note/model/model.go -------------------------------------------------------------------------------- /demo-rest2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-rest2/main.go -------------------------------------------------------------------------------- /demo-rest2/model/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-rest2/model/model.go -------------------------------------------------------------------------------- /demo-restapi/config/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/config/const.go -------------------------------------------------------------------------------- /demo-restapi/handler/noteCreate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/handler/noteCreate.go -------------------------------------------------------------------------------- /demo-restapi/handler/noteCreate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/handler/noteCreate_test.go -------------------------------------------------------------------------------- /demo-restapi/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/main.go -------------------------------------------------------------------------------- /demo-restapi/model/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/model/note.go -------------------------------------------------------------------------------- /demo-restapi/model/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/model/user.go -------------------------------------------------------------------------------- /demo-restapi/repo/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-restapi/repo/note.go -------------------------------------------------------------------------------- /demo-simple-crawler/data.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/data.go -------------------------------------------------------------------------------- /demo-simple-crawler/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/main.go -------------------------------------------------------------------------------- /demo-simple-crawler/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/model.go -------------------------------------------------------------------------------- /demo-simple-crawler/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/parser.go -------------------------------------------------------------------------------- /demo-simple-crawler/program1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/program1.go -------------------------------------------------------------------------------- /demo-simple-crawler/program2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/program2.go -------------------------------------------------------------------------------- /demo-simple-crawler/program3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/demo-simple-crawler/program3.go -------------------------------------------------------------------------------- /go-patterns/custom_json_marshal.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/go-patterns/custom_json_marshal.diff -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/go.sum -------------------------------------------------------------------------------- /google/sheet/credentials-old.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/google/sheet/credentials-old.json -------------------------------------------------------------------------------- /google/sheet/credentials.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/google/sheet/credentials.json -------------------------------------------------------------------------------- /google/sheet/quickstart.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/google/sheet/quickstart.go -------------------------------------------------------------------------------- /google/sheet/token.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/google/sheet/token.json -------------------------------------------------------------------------------- /gorountine-pipline/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/gorountine-pipline/main.go -------------------------------------------------------------------------------- /grpc-proxy/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/grpc-proxy/main.go -------------------------------------------------------------------------------- /isolation/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/isolation/main.go -------------------------------------------------------------------------------- /jupyter/.ipynb_checkpoints/basic-checkpoint.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/jupyter/.ipynb_checkpoints/basic-checkpoint.ipynb -------------------------------------------------------------------------------- /kafka/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/kafka/main.go -------------------------------------------------------------------------------- /mongodb/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/mongodb/main.go -------------------------------------------------------------------------------- /mysql/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/mysql/main.go -------------------------------------------------------------------------------- /panic-recover/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/panic-recover/main.go -------------------------------------------------------------------------------- /pointer-assignment/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-assignment/main.go -------------------------------------------------------------------------------- /pointer-exercise/convert-cvs-to-yaml.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/convert-cvs-to-yaml.go -------------------------------------------------------------------------------- /pointer-exercise/data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/data.csv -------------------------------------------------------------------------------- /pointer-exercise/main_v1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/main_v1.go -------------------------------------------------------------------------------- /pointer-exercise/main_v2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/main_v2.go -------------------------------------------------------------------------------- /pointer-exercise/output.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/output.yml -------------------------------------------------------------------------------- /pointer-exercise/small.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-exercise/small.csv -------------------------------------------------------------------------------- /pointer-multi-lang/README.md: -------------------------------------------------------------------------------- 1 | https://repl.it/languages -------------------------------------------------------------------------------- /pointer-multi-lang/pointer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-multi-lang/pointer.go -------------------------------------------------------------------------------- /pointer-multi-lang/pointer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-multi-lang/pointer.java -------------------------------------------------------------------------------- /pointer-multi-lang/pointer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-multi-lang/pointer.js -------------------------------------------------------------------------------- /pointer-multi-lang/pointer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/pointer-multi-lang/pointer.php -------------------------------------------------------------------------------- /prompt/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/prompt/main.go -------------------------------------------------------------------------------- /race-condition/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/race-condition/.gitignore -------------------------------------------------------------------------------- /race-condition/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/race-condition/README.md -------------------------------------------------------------------------------- /race-condition/race1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/race-condition/race1.go -------------------------------------------------------------------------------- /race-condition/race2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/race-condition/race2.go -------------------------------------------------------------------------------- /race-condition/race3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/race-condition/race3.go -------------------------------------------------------------------------------- /real-world-logging/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/real-world-logging/main.go -------------------------------------------------------------------------------- /reflection/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/reflection/main.go -------------------------------------------------------------------------------- /simple-crawler/crawler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/simple-crawler/crawler.go -------------------------------------------------------------------------------- /simple-crawler/crawler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/simple-crawler/crawler.php -------------------------------------------------------------------------------- /simple-logging/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/simple-logging/main.go -------------------------------------------------------------------------------- /singleton-pattern/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/singleton-pattern/main.go -------------------------------------------------------------------------------- /string/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/string/main.go -------------------------------------------------------------------------------- /string/text: -------------------------------------------------------------------------------- 1 | Xin chầo -------------------------------------------------------------------------------- /struct/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/struct/main.go -------------------------------------------------------------------------------- /tdd-example/helper/helper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/helper.go -------------------------------------------------------------------------------- /tdd-example/helper/helper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/helper_test.go -------------------------------------------------------------------------------- /tdd-example/helper/math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/math.go -------------------------------------------------------------------------------- /tdd-example/helper/math_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/math_test.go -------------------------------------------------------------------------------- /tdd-example/helper/search.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/search.go -------------------------------------------------------------------------------- /tdd-example/helper/search_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tdd-example/helper/search_test.go -------------------------------------------------------------------------------- /tutorials/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tutorials/README.md -------------------------------------------------------------------------------- /tutorials/demo1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tutorials/demo1.go -------------------------------------------------------------------------------- /tutorials/demo2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tutorials/demo2.go -------------------------------------------------------------------------------- /tutorials/k6-demo1-script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/tutorials/k6-demo1-script.js -------------------------------------------------------------------------------- /voucher/.env: -------------------------------------------------------------------------------- 1 | PORT=8080 -------------------------------------------------------------------------------- /voucher/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/README.md -------------------------------------------------------------------------------- /voucher/_sql/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/_sql/schema.sql -------------------------------------------------------------------------------- /voucher/_test/k6.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/_test/k6.js -------------------------------------------------------------------------------- /voucher/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/main.go -------------------------------------------------------------------------------- /voucher/model/voucher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/model/voucher.go -------------------------------------------------------------------------------- /voucher/storage/voucher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher/storage/voucher.go -------------------------------------------------------------------------------- /voucher_grpc/.env: -------------------------------------------------------------------------------- 1 | PORT=10000 -------------------------------------------------------------------------------- /voucher_grpc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/README.md -------------------------------------------------------------------------------- /voucher_grpc/_sql/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/_sql/schema.sql -------------------------------------------------------------------------------- /voucher_grpc/_test/k6.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/_test/k6.js -------------------------------------------------------------------------------- /voucher_grpc/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/main.go -------------------------------------------------------------------------------- /voucher_grpc/model/voucher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/model/voucher.go -------------------------------------------------------------------------------- /voucher_grpc/proto/voucher.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/proto/voucher.pb.go -------------------------------------------------------------------------------- /voucher_grpc/proto/voucher.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/proto/voucher.proto -------------------------------------------------------------------------------- /voucher_grpc/storage/voucher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/storage/voucher.go -------------------------------------------------------------------------------- /voucher_grpc/test/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/voucher_grpc/test/client.go -------------------------------------------------------------------------------- /week1-exercise/helper/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/helpers.go -------------------------------------------------------------------------------- /week1-exercise/helper/helpers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/helpers_test.go -------------------------------------------------------------------------------- /week1-exercise/helper/map.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/map.go -------------------------------------------------------------------------------- /week1-exercise/helper/map_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/map_test.go -------------------------------------------------------------------------------- /week1-exercise/helper/math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/math.go -------------------------------------------------------------------------------- /week1-exercise/helper/math_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/math_test.go -------------------------------------------------------------------------------- /week1-exercise/helper/search.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/search.go -------------------------------------------------------------------------------- /week1-exercise/helper/search_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/search_test.go -------------------------------------------------------------------------------- /week1-exercise/helper/slice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/slice.go -------------------------------------------------------------------------------- /week1-exercise/helper/slice_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/helper/slice_test.go -------------------------------------------------------------------------------- /week1-exercise/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week1-exercise/main.go -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/dataset/saigontimes_url_1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/dataset/saigontimes_url_1.html -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/lib.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/lib.go -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/parser.go -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/testutil.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/testutil.go -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/thesaigontimes.vn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/thesaigontimes.vn.go -------------------------------------------------------------------------------- /week2-exercise-abc/crawler/thesaigontimes.vn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/crawler/thesaigontimes.vn_test.go -------------------------------------------------------------------------------- /week2-exercise-abc/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/main.go -------------------------------------------------------------------------------- /week2-exercise-abc/model/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/model/article.go -------------------------------------------------------------------------------- /week2-exercise-abc/model/url.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise-abc/model/url.go -------------------------------------------------------------------------------- /week2-exercise/.env: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /week2-exercise/crawler/data/thesaigontimes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/data/thesaigontimes.html -------------------------------------------------------------------------------- /week2-exercise/crawler/data/vietnamnet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/data/vietnamnet.html -------------------------------------------------------------------------------- /week2-exercise/crawler/lib.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/lib.go -------------------------------------------------------------------------------- /week2-exercise/crawler/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/parser.go -------------------------------------------------------------------------------- /week2-exercise/crawler/testutil.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/testutil.go -------------------------------------------------------------------------------- /week2-exercise/crawler/thesaigontimes.vn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/thesaigontimes.vn.go -------------------------------------------------------------------------------- /week2-exercise/crawler/thesaigontimes.vn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/thesaigontimes.vn_test.go -------------------------------------------------------------------------------- /week2-exercise/crawler/vietnamnet.vn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/vietnamnet.vn.go -------------------------------------------------------------------------------- /week2-exercise/crawler/vietnamnet.vn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/crawler/vietnamnet.vn_test.go -------------------------------------------------------------------------------- /week2-exercise/docs/script.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/docs/script.sql -------------------------------------------------------------------------------- /week2-exercise/helper/sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/helper/sql.go -------------------------------------------------------------------------------- /week2-exercise/helper/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/helper/util.go -------------------------------------------------------------------------------- /week2-exercise/helper/watcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/helper/watcher.go -------------------------------------------------------------------------------- /week2-exercise/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/main.go -------------------------------------------------------------------------------- /week2-exercise/model/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/model/article.go -------------------------------------------------------------------------------- /week2-exercise/model/url.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week2-exercise/model/url.go -------------------------------------------------------------------------------- /week3-demo/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-demo/main.go -------------------------------------------------------------------------------- /week3-demo/model/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-demo/model/note.go -------------------------------------------------------------------------------- /week3-exercise/.env.example: -------------------------------------------------------------------------------- 1 | HTTP_PORT=8082 -------------------------------------------------------------------------------- /week3-exercise/handler/increment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/increment.go -------------------------------------------------------------------------------- /week3-exercise/handler/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/note.go -------------------------------------------------------------------------------- /week3-exercise/handler/note_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/note_test.go -------------------------------------------------------------------------------- /week3-exercise/handler/ping.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/ping.go -------------------------------------------------------------------------------- /week3-exercise/handler/route.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/route.go -------------------------------------------------------------------------------- /week3-exercise/handler/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/handler/user.go -------------------------------------------------------------------------------- /week3-exercise/helper/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/helper/common.go -------------------------------------------------------------------------------- /week3-exercise/k6/get-increment-id.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/k6/get-increment-id.js -------------------------------------------------------------------------------- /week3-exercise/k6/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/k6/script.js -------------------------------------------------------------------------------- /week3-exercise/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/main.go -------------------------------------------------------------------------------- /week3-exercise/mock/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/mock/note.go -------------------------------------------------------------------------------- /week3-exercise/model/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/model/note.go -------------------------------------------------------------------------------- /week3-exercise/model/setting.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/model/setting.go -------------------------------------------------------------------------------- /week3-exercise/model/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/model/user.go -------------------------------------------------------------------------------- /week3-exercise/repo/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/repo/note.go -------------------------------------------------------------------------------- /week3-exercise/repo/setting.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/repo/setting.go -------------------------------------------------------------------------------- /week3-exercise/repo/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-exercise/repo/user.go -------------------------------------------------------------------------------- /week3-offline/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week3-offline/main.go -------------------------------------------------------------------------------- /week3-simple-http/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /week4-exercise-db/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise-db/client/main.go -------------------------------------------------------------------------------- /week4-exercise-db/model/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise-db/model/note.go -------------------------------------------------------------------------------- /week4-exercise-db/proto/note.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise-db/proto/note.pb.go -------------------------------------------------------------------------------- /week4-exercise-db/proto/note.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise-db/proto/note.proto -------------------------------------------------------------------------------- /week4-exercise-db/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise-db/server/main.go -------------------------------------------------------------------------------- /week4-exercise/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/README.md -------------------------------------------------------------------------------- /week4-exercise/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/client/main.go -------------------------------------------------------------------------------- /week4-exercise/client_default: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/client_default -------------------------------------------------------------------------------- /week4-exercise/gateway/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/gateway/main.go -------------------------------------------------------------------------------- /week4-exercise/note/NoteOuterClass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/note/NoteOuterClass.java -------------------------------------------------------------------------------- /week4-exercise/proto/note.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/proto/note.pb.go -------------------------------------------------------------------------------- /week4-exercise/proto/note.pb.gw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/proto/note.pb.gw.go -------------------------------------------------------------------------------- /week4-exercise/proto/note.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/proto/note.proto -------------------------------------------------------------------------------- /week4-exercise/protoc.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/protoc.sh -------------------------------------------------------------------------------- /week4-exercise/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/server/main.go -------------------------------------------------------------------------------- /week4-exercise/server_default: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week4-exercise/server_default -------------------------------------------------------------------------------- /week5-exercise-db/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/README.md -------------------------------------------------------------------------------- /week5-exercise-db/client.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | go run client/main.go --registry=consul -------------------------------------------------------------------------------- /week5-exercise-db/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/client/main.go -------------------------------------------------------------------------------- /week5-exercise-db/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/main -------------------------------------------------------------------------------- /week5-exercise-db/model/note.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/model/note.go -------------------------------------------------------------------------------- /week5-exercise-db/proto/note.micro.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/proto/note.micro.go -------------------------------------------------------------------------------- /week5-exercise-db/proto/note.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/proto/note.pb.go -------------------------------------------------------------------------------- /week5-exercise-db/proto/note.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/proto/note.proto -------------------------------------------------------------------------------- /week5-exercise-db/protoc.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/protoc.sh -------------------------------------------------------------------------------- /week5-exercise-db/server.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | go run server/main.go --registry=consul -------------------------------------------------------------------------------- /week5-exercise-db/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise-db/server/main.go -------------------------------------------------------------------------------- /week5-exercise/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/README.md -------------------------------------------------------------------------------- /week5-exercise/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/client.go -------------------------------------------------------------------------------- /week5-exercise/client.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | go run client.go --registry=consul 4 | -------------------------------------------------------------------------------- /week5-exercise/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/docker-compose.yml -------------------------------------------------------------------------------- /week5-exercise/proto/greeter.micro.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/proto/greeter.micro.go -------------------------------------------------------------------------------- /week5-exercise/proto/greeter.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/proto/greeter.pb.go -------------------------------------------------------------------------------- /week5-exercise/proto/greeter.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/proto/greeter.proto -------------------------------------------------------------------------------- /week5-exercise/server.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | go run service.go --registry=consul 4 | -------------------------------------------------------------------------------- /week5-exercise/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tpphu/golang-training/HEAD/week5-exercise/service.go --------------------------------------------------------------------------------