This repo contains various Go applications that I have ported from other development stacks (typically demo applications that I have found useful over the years) or small, yet useful applications I have developed myself. All samples use Taskfiles as simpler to use alternative to Makefiles and allow you to build the app, run tests, create a container image etc. Using Taskfiles isn't required to use these samples, but if you're new to Go will they help you to get started quickly without having to know the Go toolchain, the Docker CLI etc.
-
booklibrary: This a port of Addy Osmani's venerable booklibrary API found in the Book Developing Backbone.js Applications originally written in JavaScript for Node.js. The Go version makes use of chi to implement as RESTful resource, the official Mongo driver for Go, and exposes Prometheus metrics.
-
ragserver: This is a port of the RAG server sample that was published by the Go team on their official blog for Azure OpenAI/OpenAI.
-
codeagent-cc: This is a port of Thorsten Ball's fantastic code editing agent sample published on his blog for Azure OpenAI/OpenAI using the Chat Completions API.
-
codeagent: This is yet another port of Thorsten Ball's fantastic code editing agent sample published on his blog for Azure OpenAI/OpenAI using the Responses API. The Respones API is more powerful than the Chat Completions API and allows one to maintain conversational state on the server side, which simplifies this implementation.
The kubeup
sample has been moved to its own repository.