go-practice

command module
v0.0.0-...-49551b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 4 Imported by: 0

README

go-practice

Practice in Golang.

Here are some useful golang code snippet for real working.

Practice list

  • middleware for web service. middleware is very useful tools for logging, timing for api.
  • json vs gob vs msgpack vs protobuf in web service
  • do something in time window

TODO list

  • build environment in docker: cgo dependence, dockerfile, ...
  • retry function
  • gRPC vs HTTP restful
  • add milvus
  • add serve react web
  • go template for clean code:
    • auth check

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gRPC_vs_HTTP_REST
grpc_protobuf
Package main is a generated protocol buffer package.
Package main is a generated protocol buffer package.
http_message_encode_decode
http_protobuf
Package main is a generated protocol buffer package.
Package main is a generated protocol buffer package.
map_vs_sync_map
map
pprof_performance
simple-load-balancer
lb
tips_practice

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL