Skip to content

Releases

v0.2.0

Choose a tag to compare

@bu bu released this 27 Oct 06:18

This release introduces a Service Registry package, which helps decouple dependencies within your application by providing dynamic registration and retrieval of services.

New Features:

•	Package: registry
•	A flexible service registry that allows you to dynamically register, retrieve, and manage services in your application.

Key Methods:

•	Register(string, any): Register a service with a specific name.
•	Unregister(string): Unregister a service by its name.
•	Get[T](string): Retrieve a service of type T by its name.
•	Exist(string): Check if a service is registered under a specific name.

This package helps to streamline dependency management and provides an easy way to manage services in decoupled architectures.

v0.1.0

Choose a tag to compare

@bu bu released this 22 Oct 14:05

This is the first release of Butil, a utility library designed to simplify environment variable retrieval.

New Features

Package: env

Provides a convenient way to fetch environment variables with support for default values and type conversions.

Available Methods:

  • env.Get("key", "default_value"): Fetches the value of the specified environment variable. Returns "default_value" if the variable is not set.
  • env.GetInt("key", 12): Fetches the value as an integer. Returns 12 if the variable is not set or cannot be converted to an integer.
  • env.MustGet("key"): Fetches the value of the specified environment variable. Panics if the variable is not set.