https://github.com/kevinmichaelchen/my-go-utils
Helper functions for Go backends
https://github.com/kevinmichaelchen/my-go-utils
go golang snowflake
Last synced: 3 months ago
JSON representation
Helper functions for Go backends
- Host: GitHub
- URL: https://github.com/kevinmichaelchen/my-go-utils
- Owner: kevinmichaelchen
- Created: 2018-01-28T04:59:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T18:53:40.000Z (almost 7 years ago)
- Last Synced: 2025-02-23T22:43:39.642Z (3 months ago)
- Topics: go, golang, snowflake
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## my-go-utils
### Usage
```
go get github.com/kevinmichaelchen/my-go-utils
```### Features
This library provides several helper functions.#### Environment variables
~~We support reading and type converting environment variables.~~
Use TeslaGov/envy instead.#### Type conversions
- parsing strings to int64#### Request and Response
- writing errors and structs to a http.ResponseWriter
- parsing int64 vars from a map of route variables#### DB
- initializing a DB connection with retries and intermittent sleeping#### Snowflake
- initializing new Snowflake nodes
- generating new Snowflake IDs