原书出处
Cloud Native Go (Matthew A. Titmus)
05 Building a Cloud Native Service
Unlike the big bag of strings approach, the above struct is small, readable, and easily extended. To use it we’d create a PostgresDbParams variable and pass it to our construction function. Here’s what that looks like: transact, err = NewPostgresTransactionLogger(PostgresDbParams{ host: "localhost", dbName: "kvs", user: "test", password: "hunter2" }) Our new construction function looks something
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml
EPUB SHA-256:1154caa7b61465daf957a7d8f1350ef24ab5db9c850cab5987aae5bc74986022