The Awesome Code Blog
  • Home
  • Publications
  • Ionic
  • Author
  • YouTube Downloader
  • Ionic Live Deployment
Sign in Subscribe

golang

A collection of 2 posts
How to profile a Go application with pprof
golang

How to profile a Go application with pprof

Step 1 Install dependencies: apt-get install graphviz gv or brew install graphviz Step 2 Download pprof to your application go get -u github.com/google/pprof Step 3 Import pprof to your application import _ "net/http/pprof" Step 4 Add pprof server to application e.g. main.go
29 Sep 2022 1 min read
Golang Mockery - Mock Function with multiple return values
golang

Golang Mockery - Mock Function with multiple return values

If you've ever written a test in golang, you may used the testify package. An immensely useful extension of that is the mockery package, which gives you the ability to autogenerate mocks for interfaces with ease. In most cases, you'll want your mock functions to return
29 Sep 2022 1 min read
Page 1 of 1
The Awesome Code Blog © 2026
Powered by Ghost
AGB & Datenschutz Impressum