Skip to content
/ golibs Public

Useful and extensible utilities to use in Golang for Websockets, Interfaces, Profiling, HTTP Servers, and more.

Notifications You must be signed in to change notification settings

kuro337/golibs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ██████╗  ██████╗ ██╗     ██╗██████╗ ███████╗
██╔════╝ ██╔═══██╗██║     ██║██╔══██╗██╔════╝
██║  ███╗██║   ██║██║     ██║██████╔╝███████╗
██║   ██║██║   ██║██║     ██║██╔══██╗╚════██║
╚██████╔╝╚██████╔╝███████╗██║██████╔╝███████║
 ╚═════╝  ╚═════╝ ╚══════╝╚═╝╚═════╝ ╚══════╝

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.
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.
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

About

Useful and extensible utilities to use in Golang for Websockets, Interfaces, Profiling, HTTP Servers, and more.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published