Categorygithub.com/Breeze0806/go
repository
0.0.0-20241007070500-6a4893c38b81
Repository: https://github.com/breeze0806/go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

go

my go lib

database/pqto

database/pqto is an extension package of pq (a pure Go postgres driver for Go's database/sql package).It introduces read and write timeouts in database soruce connection string as follows:

postgres://192.168.15.130:5432/postgres?sslmode=disable&connect_timeout=2&read_timeout=2s&write_timeout=2s
  • read_timeout: It uses a format similar to Go's Duration to describe the read timeout.

  • write_timeout: It uses a format similar to Go's Duration to describe the writetimeout.

encoding

encoding provides a fast JSON parsing solution that is different from the one in the standard library.

gmsm

gmsm provides encryption methods compliant with national cryptographic standards.

log

log provides a simple logging wrapper.

time2

time2 providesGo's Duration json format

timeout

timeout provided a connection with read and write timeouts.