Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuro337/golibs
Useful and extensible utilities to use in Golang for Websockets, Interfaces, Profiling, HTTP Servers, and more.
https://github.com/kuro337/golibs
golang instrumentation performance profiling
Last synced: 24 days ago
JSON representation
Useful and extensible utilities to use in Golang for Websockets, Interfaces, Profiling, HTTP Servers, and more.
- Host: GitHub
- URL: https://github.com/kuro337/golibs
- Owner: kuro337
- Created: 2023-08-28T02:12:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T06:10:01.000Z (over 1 year ago)
- Last Synced: 2024-11-14T18:46:35.074Z (3 months ago)
- Topics: golang, instrumentation, performance, profiling
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
██████╗ ██████╗ ██╗ ██╗██████╗ ███████╗
██╔════╝ ██╔═══██╗██║ ██║██╔══██╗██╔════╝
██║ ███╗██║ ██║██║ ██║██████╔╝███████╗
██║ ██║██║ ██║██║ ██║██╔══██╗╚════██║
╚██████╔╝╚██████╔╝███████╗██║██████╔╝███████║
╚═════╝ ╚═════╝ ╚══════╝╚═╝╚═════╝ ╚══════╝
```# utility libraries for go
- `github.com/kuro337/golibs/profiling`
- Profiler to instrument and gather perf metrics from applications
- Interface that uses `runtime/pprof` and `gotrace` to gather metrics
- Will set up `PGO` - Profile Guided Optimization for Go Applications on subsequent builds.```go
import "github.com/kuro337/golibs/profiling"func main() {
p := profiling.NewProfiler("outputFolder").
Tracing().Memory().CPU().Optimize().
Help().Start()defer p.Stop()
... // rest of the app
}
```- `github.com/kuro337/golibs/websockets`
- Opinionated Websockets server implementation using `gorilla/websockets`
- Provides default routes to echo and broadcast messages , keep track of connections , and ability to easily add more functionality/routes.```go
import "github.com/kuro337/golibs/websockets"func main() {
wsServer := server.NewWsServer("8080").EnableAll().Start()
}
```- `github.com/kuro337/golibs/utils`
- Common utilities such as for copying files