Btioc
An IoC container for Golang.
Install / Use
/learn @bt/BtiocREADME
IoC Container for Go
Go doesn't currently have a well documented or easy to use IoC container. As I needed one for the project I'm working on, I'm trying to make one that closely resembles Laravel's IoC Container, due to my strong PHP background.
Getting Started
// Instantiate an object.
obj := "foobar"
// Register into the container.
btioc.Register("foo_object", obj)
// Retrieve the object.
res, _ := btioc.Retrieve("foo_object")
// Prints "what the foobar?!".
fmt.Printf("What the %s?!", res)
For a more detailed example (or how you can use structs with the container), check out the example file.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
351.4kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
