Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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