├── .gitignore ├── SOLID ├── lsp │ └── lsp.go └── srp │ ├── bad.go │ └── good.go ├── apistyle ├── greeter │ ├── client │ │ └── main.go │ ├── helloworld │ │ ├── helloworld.pb.go │ │ └── helloworld.proto │ └── server │ │ └── main.go └── ping │ └── main.go ├── cobra ├── demoapp │ ├── LICENSE │ ├── README.md │ ├── cmd │ │ ├── config.go │ │ ├── root.go │ │ └── serve.go │ └── main.go └── newApp2 │ ├── cmd │ ├── root.go │ └── version.go │ ├── go.mod │ ├── go.sum │ └── main.go ├── cron └── cron.go ├── delve ├── delve └── main.go ├── docs └── prepare.md ├── errors ├── bad.go ├── errors.go ├── errortrack_errors.go ├── errortrack_log.go ├── good.go ├── new.go ├── sample_errors.go └── wrap.go ├── fuzz ├── main.go └── reverse_test.go ├── gin ├── cookie │ └── main.go ├── custom_log_format │ └── main.go ├── example.go ├── graceful │ └── main.go ├── http-configuration │ └── main.go ├── log │ └── main.go ├── middleware │ ├── custom │ │ └── main.go │ └── main.go ├── multiple-service │ └── main.go ├── parse │ └── main.go ├── redirect │ └── main.go └── webfeature │ ├── ca.pem │ ├── genca.sh │ ├── main.go │ ├── server.key │ ├── server.pem │ └── webfeature.go ├── go.mod ├── go.sum ├── gomock ├── go_version.go ├── go_version_test.go └── spider │ ├── mock │ └── mock_spider.go │ └── spider.go ├── gorm └── main.go ├── graceful └── main.go ├── interface └── interface.go ├── ladon ├── condition │ └── main.go └── policy │ └── main.go ├── log ├── cuslog │ ├── .gitignore │ ├── entry.go │ ├── example │ │ ├── example.go │ │ ├── main.go │ │ └── test.log │ ├── formatter.go │ ├── formatter_json.go │ ├── formatter_text.go │ ├── go.mod │ ├── go.sum │ ├── logger.go │ └── options.go ├── glog │ ├── example1.go │ ├── example2.go │ ├── example3.go │ ├── example4.go │ └── main.go ├── logrus │ └── example1.go ├── std │ ├── log.log │ └── main.go └── zap │ ├── example1.go │ ├── example2.go │ ├── example3.go │ ├── example4.go │ ├── global_logger.go │ ├── preset_field.go │ └── structured_log.go ├── makefile ├── Makefile ├── hello └── hello.c ├── modules └── hello │ ├── .js │ ├── go.mod │ ├── go.sum │ ├── hello.go │ ├── hello_test.go │ └── world │ └── world.go ├── oop └── oop.go ├── pflag ├── example1.go ├── example2.go └── main.go ├── pprof ├── cpu.profile ├── mem.profile └── pprof.go ├── protobuf └── user │ ├── user.go │ └── user.proto ├── redsync └── redsync.go ├── swagger ├── api │ └── user.go ├── docs │ ├── doc.go │ └── user.go ├── main.go ├── swagger.json ├── swagger.new.yaml ├── swagger.old.yaml └── swagger.yaml ├── swagger~ ├── cmd │ └── todo-list-server │ │ └── main.go ├── go.mod ├── models │ ├── error.go │ └── item.go ├── restapi │ ├── configure_todo_list.go │ ├── doc.go │ ├── embedded_spec.go │ ├── operations │ │ ├── todo_list_api.go │ │ └── todos │ │ │ ├── get_secrets.go │ │ │ ├── get_secrets_parameters.go │ │ │ ├── get_secrets_responses.go │ │ │ └── get_secrets_urlbuilder.go │ └── server.go ├── swagger.yml └── swagger.yml~ ├── test ├── cpu.profile ├── example_test.go ├── math.go ├── math_test.go ├── mem.profile └── test.test ├── testable ├── distestable.go ├── fake_impl.go ├── testable.go └── testable_test.go └── viper ├── config.running.yaml ├── config.yaml └── main.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /SOLID/lsp/lsp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/SOLID/lsp/lsp.go -------------------------------------------------------------------------------- /SOLID/srp/bad.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/SOLID/srp/bad.go -------------------------------------------------------------------------------- /SOLID/srp/good.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/SOLID/srp/good.go -------------------------------------------------------------------------------- /apistyle/greeter/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/apistyle/greeter/client/main.go -------------------------------------------------------------------------------- /apistyle/greeter/helloworld/helloworld.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/apistyle/greeter/helloworld/helloworld.pb.go -------------------------------------------------------------------------------- /apistyle/greeter/helloworld/helloworld.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/apistyle/greeter/helloworld/helloworld.proto -------------------------------------------------------------------------------- /apistyle/greeter/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/apistyle/greeter/server/main.go -------------------------------------------------------------------------------- /apistyle/ping/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/apistyle/ping/main.go -------------------------------------------------------------------------------- /cobra/demoapp/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/LICENSE -------------------------------------------------------------------------------- /cobra/demoapp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/README.md -------------------------------------------------------------------------------- /cobra/demoapp/cmd/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/cmd/config.go -------------------------------------------------------------------------------- /cobra/demoapp/cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/cmd/root.go -------------------------------------------------------------------------------- /cobra/demoapp/cmd/serve.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/cmd/serve.go -------------------------------------------------------------------------------- /cobra/demoapp/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/demoapp/main.go -------------------------------------------------------------------------------- /cobra/newApp2/cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/newApp2/cmd/root.go -------------------------------------------------------------------------------- /cobra/newApp2/cmd/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/newApp2/cmd/version.go -------------------------------------------------------------------------------- /cobra/newApp2/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/newApp2/go.mod -------------------------------------------------------------------------------- /cobra/newApp2/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/newApp2/go.sum -------------------------------------------------------------------------------- /cobra/newApp2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cobra/newApp2/main.go -------------------------------------------------------------------------------- /cron/cron.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/cron/cron.go -------------------------------------------------------------------------------- /delve/delve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/delve/delve -------------------------------------------------------------------------------- /delve/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/delve/main.go -------------------------------------------------------------------------------- /docs/prepare.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/docs/prepare.md -------------------------------------------------------------------------------- /errors/bad.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/bad.go -------------------------------------------------------------------------------- /errors/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/errors.go -------------------------------------------------------------------------------- /errors/errortrack_errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/errortrack_errors.go -------------------------------------------------------------------------------- /errors/errortrack_log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/errortrack_log.go -------------------------------------------------------------------------------- /errors/good.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/good.go -------------------------------------------------------------------------------- /errors/new.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/new.go -------------------------------------------------------------------------------- /errors/sample_errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/sample_errors.go -------------------------------------------------------------------------------- /errors/wrap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/errors/wrap.go -------------------------------------------------------------------------------- /fuzz/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/fuzz/main.go -------------------------------------------------------------------------------- /fuzz/reverse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/fuzz/reverse_test.go -------------------------------------------------------------------------------- /gin/cookie/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/cookie/main.go -------------------------------------------------------------------------------- /gin/custom_log_format/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/custom_log_format/main.go -------------------------------------------------------------------------------- /gin/example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/example.go -------------------------------------------------------------------------------- /gin/graceful/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/graceful/main.go -------------------------------------------------------------------------------- /gin/http-configuration/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/http-configuration/main.go -------------------------------------------------------------------------------- /gin/log/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/log/main.go -------------------------------------------------------------------------------- /gin/middleware/custom/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/middleware/custom/main.go -------------------------------------------------------------------------------- /gin/middleware/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/middleware/main.go -------------------------------------------------------------------------------- /gin/multiple-service/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/multiple-service/main.go -------------------------------------------------------------------------------- /gin/parse/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/parse/main.go -------------------------------------------------------------------------------- /gin/redirect/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/redirect/main.go -------------------------------------------------------------------------------- /gin/webfeature/ca.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/ca.pem -------------------------------------------------------------------------------- /gin/webfeature/genca.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/genca.sh -------------------------------------------------------------------------------- /gin/webfeature/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/main.go -------------------------------------------------------------------------------- /gin/webfeature/server.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/server.key -------------------------------------------------------------------------------- /gin/webfeature/server.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/server.pem -------------------------------------------------------------------------------- /gin/webfeature/webfeature.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gin/webfeature/webfeature.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/go.sum -------------------------------------------------------------------------------- /gomock/go_version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gomock/go_version.go -------------------------------------------------------------------------------- /gomock/go_version_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gomock/go_version_test.go -------------------------------------------------------------------------------- /gomock/spider/mock/mock_spider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gomock/spider/mock/mock_spider.go -------------------------------------------------------------------------------- /gomock/spider/spider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gomock/spider/spider.go -------------------------------------------------------------------------------- /gorm/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/gorm/main.go -------------------------------------------------------------------------------- /graceful/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/graceful/main.go -------------------------------------------------------------------------------- /interface/interface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/interface/interface.go -------------------------------------------------------------------------------- /ladon/condition/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/ladon/condition/main.go -------------------------------------------------------------------------------- /ladon/policy/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/ladon/policy/main.go -------------------------------------------------------------------------------- /log/cuslog/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/.gitignore -------------------------------------------------------------------------------- /log/cuslog/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/entry.go -------------------------------------------------------------------------------- /log/cuslog/example/example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/example/example.go -------------------------------------------------------------------------------- /log/cuslog/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/example/main.go -------------------------------------------------------------------------------- /log/cuslog/example/test.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/example/test.log -------------------------------------------------------------------------------- /log/cuslog/formatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/formatter.go -------------------------------------------------------------------------------- /log/cuslog/formatter_json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/formatter_json.go -------------------------------------------------------------------------------- /log/cuslog/formatter_text.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/formatter_text.go -------------------------------------------------------------------------------- /log/cuslog/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/go.mod -------------------------------------------------------------------------------- /log/cuslog/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/go.sum -------------------------------------------------------------------------------- /log/cuslog/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/logger.go -------------------------------------------------------------------------------- /log/cuslog/options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/cuslog/options.go -------------------------------------------------------------------------------- /log/glog/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/glog/example1.go -------------------------------------------------------------------------------- /log/glog/example2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/glog/example2.go -------------------------------------------------------------------------------- /log/glog/example3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/glog/example3.go -------------------------------------------------------------------------------- /log/glog/example4.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/glog/example4.go -------------------------------------------------------------------------------- /log/glog/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/glog/main.go -------------------------------------------------------------------------------- /log/logrus/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/logrus/example1.go -------------------------------------------------------------------------------- /log/std/log.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /log/std/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/std/main.go -------------------------------------------------------------------------------- /log/zap/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/example1.go -------------------------------------------------------------------------------- /log/zap/example2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/example2.go -------------------------------------------------------------------------------- /log/zap/example3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/example3.go -------------------------------------------------------------------------------- /log/zap/example4.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/example4.go -------------------------------------------------------------------------------- /log/zap/global_logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/global_logger.go -------------------------------------------------------------------------------- /log/zap/preset_field.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/preset_field.go -------------------------------------------------------------------------------- /log/zap/structured_log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/log/zap/structured_log.go -------------------------------------------------------------------------------- /makefile/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/makefile/Makefile -------------------------------------------------------------------------------- /makefile/hello: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/makefile/hello -------------------------------------------------------------------------------- /makefile/hello.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/makefile/hello.c -------------------------------------------------------------------------------- /modules/hello/.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/hello/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/modules/hello/go.mod -------------------------------------------------------------------------------- /modules/hello/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/modules/hello/go.sum -------------------------------------------------------------------------------- /modules/hello/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/modules/hello/hello.go -------------------------------------------------------------------------------- /modules/hello/hello_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/modules/hello/hello_test.go -------------------------------------------------------------------------------- /modules/hello/world/world.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/modules/hello/world/world.go -------------------------------------------------------------------------------- /oop/oop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/oop/oop.go -------------------------------------------------------------------------------- /pflag/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pflag/example1.go -------------------------------------------------------------------------------- /pflag/example2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pflag/example2.go -------------------------------------------------------------------------------- /pflag/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pflag/main.go -------------------------------------------------------------------------------- /pprof/cpu.profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pprof/cpu.profile -------------------------------------------------------------------------------- /pprof/mem.profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pprof/mem.profile -------------------------------------------------------------------------------- /pprof/pprof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/pprof/pprof.go -------------------------------------------------------------------------------- /protobuf/user/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/protobuf/user/user.go -------------------------------------------------------------------------------- /protobuf/user/user.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/protobuf/user/user.proto -------------------------------------------------------------------------------- /redsync/redsync.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/redsync/redsync.go -------------------------------------------------------------------------------- /swagger/api/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/api/user.go -------------------------------------------------------------------------------- /swagger/docs/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/docs/doc.go -------------------------------------------------------------------------------- /swagger/docs/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/docs/user.go -------------------------------------------------------------------------------- /swagger/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/main.go -------------------------------------------------------------------------------- /swagger/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/swagger.json -------------------------------------------------------------------------------- /swagger/swagger.new.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/swagger.new.yaml -------------------------------------------------------------------------------- /swagger/swagger.old.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/swagger.old.yaml -------------------------------------------------------------------------------- /swagger/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger/swagger.yaml -------------------------------------------------------------------------------- /swagger~/cmd/todo-list-server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/cmd/todo-list-server/main.go -------------------------------------------------------------------------------- /swagger~/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/marmotedu/gopractise-demo/swagger 2 | 3 | go 1.15 4 | -------------------------------------------------------------------------------- /swagger~/models/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/models/error.go -------------------------------------------------------------------------------- /swagger~/models/item.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/models/item.go -------------------------------------------------------------------------------- /swagger~/restapi/configure_todo_list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/configure_todo_list.go -------------------------------------------------------------------------------- /swagger~/restapi/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/doc.go -------------------------------------------------------------------------------- /swagger~/restapi/embedded_spec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/embedded_spec.go -------------------------------------------------------------------------------- /swagger~/restapi/operations/todo_list_api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/operations/todo_list_api.go -------------------------------------------------------------------------------- /swagger~/restapi/operations/todos/get_secrets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/operations/todos/get_secrets.go -------------------------------------------------------------------------------- /swagger~/restapi/operations/todos/get_secrets_parameters.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/operations/todos/get_secrets_parameters.go -------------------------------------------------------------------------------- /swagger~/restapi/operations/todos/get_secrets_responses.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/operations/todos/get_secrets_responses.go -------------------------------------------------------------------------------- /swagger~/restapi/operations/todos/get_secrets_urlbuilder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/operations/todos/get_secrets_urlbuilder.go -------------------------------------------------------------------------------- /swagger~/restapi/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/restapi/server.go -------------------------------------------------------------------------------- /swagger~/swagger.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/swagger.yml -------------------------------------------------------------------------------- /swagger~/swagger.yml~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/swagger~/swagger.yml~ -------------------------------------------------------------------------------- /test/cpu.profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/cpu.profile -------------------------------------------------------------------------------- /test/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/example_test.go -------------------------------------------------------------------------------- /test/math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/math.go -------------------------------------------------------------------------------- /test/math_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/math_test.go -------------------------------------------------------------------------------- /test/mem.profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/mem.profile -------------------------------------------------------------------------------- /test/test.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/test/test.test -------------------------------------------------------------------------------- /testable/distestable.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/testable/distestable.go -------------------------------------------------------------------------------- /testable/fake_impl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/testable/fake_impl.go -------------------------------------------------------------------------------- /testable/testable.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/testable/testable.go -------------------------------------------------------------------------------- /testable/testable_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/testable/testable_test.go -------------------------------------------------------------------------------- /viper/config.running.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/viper/config.running.yaml -------------------------------------------------------------------------------- /viper/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/viper/config.yaml -------------------------------------------------------------------------------- /viper/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmotedu/gopractise-demo/HEAD/viper/main.go --------------------------------------------------------------------------------