go

module
v0.0.0-...-6a4893c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT

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.

Directories

Path Synopsis
database
crypto/x509 add sm2 support
crypto/x509 add sm2 support

Jump to

Keyboard shortcuts

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