-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(blog): add post about micromachine
- Loading branch information
1 parent
23bfa56
commit 45cc8c4
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "Introducing: Micromachine" | ||
date: 2025-02-18 17:00 | ||
excerpt: Thread-safe, flexible, and generic state management for Go | ||
tags: | ||
- Programming | ||
- Short | ||
--- | ||
I'm pleased to announce the release of | ||
[Micromachine](https://github.com/eliseomartelli/micromachine), a new | ||
open-source library designed to simplify state management in Go applications. | ||
|
||
## What is Micromachine? | ||
|
||
Micromachine is a generic state machine implementation in Go that allows you to | ||
define states and transitions between them. It supports any comparable type for | ||
states and ensures thread safety, making it ideal for concurrent applications. | ||
With Micromachine, you can define custom actions to be executed during state | ||
transitions and check if a transition is valid before attempting it. | ||
|
||
## Key Features | ||
|
||
- **Generic State Management**: Supports any comparable type for states, providing flexibility in defining your state machine. | ||
- **Thread Safety**: Ensures that concurrent access is handled correctly, making it suitable for multi-threaded applications. | ||
- **Custom Actions**: Define custom actions to be executed during state transitions, allowing for complex state management logic. | ||
- **Transition Validation**: Check if a transition is valid before attempting it, preventing runtime errors. | ||
|
||
## Why Micromachine? | ||
|
||
Micromachine was born out of the need for a simple yet powerful state | ||
management solution in Go. As a developer, I often found myself implementing | ||
state machines from scratch, which was time-consuming and error-prone. | ||
Micromachine aims to solve this problem. | ||
|
||
You can check out the | ||
[Micromachine](https://github.com/eliseomartelli/micromachine) repository and | ||
start using it today. | ||
|