golang-test-examples
Some examples of testing techniques and commonly used frameworks
Test frameworks
- Testify
- Ginkgo
- Convey
- godog (cucumber)
Test examples
- Using interfaces to make testing easy
- Test HTTP servers
- TestMain
- Enhancing *testing.T
Some examples of testing techniques and commonly used frameworks
In one particular project, i had to import some key/value data to Prometheus. So i have decided to create my custom-built Node Exporter in Golang.
relaxduration If you accept that 1 day is 24 hours in some situations, you might want to parse it in Go too. This package tries to handle situations w
one-file-pdf - A minimalist PDF generator in 2K lines and 1 file The main idea behind this project was: "How small can I make a PDF generator for it
Nomad Pack is a templating and packaging tool used with HashiCorp Nomad.
Easy to Use In-Memory Key-Value Store A project that provides an in-memory key-value store as a REST API. Also, it's containerized and can be used as
Radiant is used for rapid development of enterprise application in Go, including RESTful APIs, web apps and backend services.
React Cosmos Sandbox for developing and testing UI components in isolation. Visual TDD. Develop one component at a time. Isolate the UI you're working
External images on LinuxFr.org Our users can use images from external domains on LinuxFr.org. This component is a reverse-proxy / cache for these imag
Oddments Oddments is a repository of random code snippets used to develop proof of concepts for techniques used with the Windows operating system. POC
Golang Module Project The purpose of this project is to act as a reference for setting up future Golang projects using modules. This project has a mat
This Go based project of Aadhyarupam Innovators demonstrate the code examples for building microservices, integration with cloud services (Google Cloud Firestore), application configuration management (Viper) etc.
functional A functional programming library including a lazy list implementation and some of the most usual functions. import FP "github.com/tcard/fun
persian Some utilities for Persian language in Go (Golang). Installation go get github.com/mavihq/persian API .ToPersianDigits Converts all English d
go-villa Package villa contains some helper types for Go: priority queue, slice wrapper, binary-search, merge-sort. GoDoc Link: http://godoc.org/githu
Gophers ?? Hey ?? ! Here are some drawings I have been using for talks about Golang. These are mainly gophers, but also some dukes, and miscellaneous.
dropspy is a (POC-quality) reworking of the C-language dropwatch tool in Go, with some extra features.
str Some convenient string functions. What This package containsa couple of functions to remove duplicates from string slices and optionally sort them
i2c some plain Go/Golang i2c sensor bindings to Waveshare Sense HAT for raspberry pi using https://periph.io Supported hardware: Raspberry Zero W 1 ht
This contains some example (micro)service. It should expose some of the issues when tyring to put too much logic into one file or to mix things that should not be mixed together.