Directories ¶ Show internal Expand all Path Synopsis 1-basics 1_basics/01_vars_1 command 1_basics/02_vars_2 command 1_basics/03_const command 1_basics/04_pointers command 1_basics/05_array command 1_basics/06_slice_1 command 1_basics/07_slice_2 command 1_basics/08_strings command 1_basics/09_map command 1_basics/10_control command 1_basics/11_loop command 1_basics/12_types command 1_basics/13_generic command 2_functions/1_functions command 2_functions/2_firstclass command 2_functions/3_defer command 2_functions/4_recover command 3_structs/1_structs command 3_structs/2_methods command 4_interfaces/1.2_basic_sort command 4_interfaces/1_basic command 4_interfaces/2_many command 4_interfaces/3_embed command 4_interfaces/4_cast command 4_interfaces/5_empty_1 command 4_interfaces/6_empty_2 command 5_visibility command 5_visibility/person 6_uniq/basic command 6_uniq/with_tests command 10-performance 1_reflect/1_print command 1_reflect/2_unpack command 2_codegen/gen command 2_codegen/pack command 3_perfomance_1/5_json 4_perfomance_2/1_optimize command 4_perfomance_2/2_leak_grtn command 4_perfomance_2/3_tracing command 5_testing command 6_xml_stream command 7_inline_escape command 8_cgo/1_example command 8_cgo/2_performance command 2-async 0_basic_error_handling/1_ignore_errors command 0_basic_error_handling/2_panic command 0_basic_error_handling/3_handling command 1_async/10_context_cancel command 1_async/10_context_timeout command 1_async/11_errgroup_1 command 1_async/11_errgroup_2 command 1_async/12_atomic_1 command 1_async/12_atomic_2 command 1_async/13_ratelim command 1_async/14_once command 1_async/1_goroutines command 1_async/1_goroutines_2 command 1_async/2_chan command 1_async/2_chan_2 command 1_async/3_workerpool command 1_async/4_race_1 command 1_async/4_race_2 command 1_async/4_race_3 command 1_async/5_tick command 1_async/6_afterfunc command 1_async/7_select_1 command 1_async/7_select_2 command 1_async/7_select_2_new command 1_async/7_select_3 command 1_async/8_wait_1 command 1_async/8_wait_2 command 1_async/8_wait_3 command 1_async/9_timeout command 3-web 0_json/0_simple_json command 0_json/1_struct_tags command 0_json/2_custom command 0_json/3_dynamic command 1_net command 2_http/0_http_server/0_basic command 2_http/0_http_server/1_pages command 2_http/0_http_server/2_servehttp command 2_http/0_http_server/3_mux command 2_http/0_http_server/4_servers command 2_http/1_request/0_get command 2_http/1_request/1_post command 2_http/1_request/2_cookies command 2_http/1_request/3_headers command 2_http/2_http_client command 2_http/3_files/0_file_upload command 2_http/3_files/1_static command 3_template/0_inline command 3_template/1_file command 3_template/2_func command 3_template/3_method command 4_json_http command 4-api 1_rpc command 1_rpc/jsonrpc command 1_rpc/net-rpc command 2_rest command 3_graphql/gqlgen 3_graphql/gqlgen/server command 3_graphql/graphql-go command 4_swagger command 4_swagger/docs 4_swagger/model 5_sessions command 6_jwt command 7_oauth command 5-architecture 0_bad_example command 1_routers/0_httprouter command 1_routers/1_fasthttp command 1_routers/2_gorilla command 1_routers/3_multiple command 2_middleware/1_middleware command 2_middleware/2_context_value command 3_errors/1_basic_err command 3_errors/2_named_err command 3_errors/3_pkg_err command 3_errors/4_own_err command 3_errors/5_new_errors command 4_validation command 5_logging command 6_websockets command 7_frameworks/echo command 7_frameworks/echo/middleware 7_frameworks/echo/model 7_frameworks/echo/user 7_frameworks/echo/user/delivery/http 7_frameworks/echo/user/repository 7_frameworks/echo/user/usecase 6-databases 01_mysql command 02_mysql_sql_injection command 03_mysql_sqlmock command 04_gorm command 05_crudapp_db_tests/cmd/crudapp command 05_crudapp_db_tests/pkg/handlers 05_crudapp_db_tests/pkg/items 05_crudapp_db_tests/pkg/middleware 05_crudapp_db_tests/pkg/session 05_crudapp_db_tests/pkg/user 06_mongodb command 07_memcache command 08_redis_simple command 10_rabbit command 11_tarantool_simple command 12_tarantool command crudapp_mongo/cmd/crudapp command crudapp_mongo/pkg/handlers crudapp_mongo/pkg/items crudapp_mongo/pkg/middleware crudapp_mongo/pkg/session crudapp_mongo/pkg/user tcache command redis module 7-security 1_passwords command 2_csrf command 3_csrf_token command 4_xss command 5_xss_clean command 6_acl/casbin command 8-microservices 0_service/1_step command 0_service/2_step command 1_net-rpc/client command 1_net-rpc/server command 2_json-rpc/client command 2_json-rpc/server command 3_protobuf command 4_grpc/client command 4_grpc/server command 4_grpc/session 5_grpc_features/client command 5_grpc_features/server command 6_grpc_stream/client command 6_grpc_stream/server command 6_grpc_stream/translit 7_grpc_loadbalance/client command 7_grpc_loadbalance/server command 9-monitoring 1_config/1_flag command 1_config/2_json command 1_config/3_ldflags command 1_config/4_viper command 1_config/5_consul command 2_vault command 3_monitoring/expvars command 3_monitoring/metrics command 3_monitoring/prometheus command 3_monitoring/sentry/echo command 3_monitoring/sentry/simple command 4_tracing/jaeger_grpc/client command 4_tracing/jaeger_grpc/server command 4_tracing/jaeger_grpc/session Click to show internal directories. Click to hide internal directories.