diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 02:22:43 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 02:22:43 +0300 |
commit | ad2733e3ae006f26a359337f1cd510fd72182d7c (patch) | |
tree | a0af5d2299209e76723c680a882f897de50a65e5 | |
parent | 6a8816c326808eafb404b3ee652259dc7ae544a2 (diff) |
Auto-commit 2024-12-11
-rw-r--r-- | content/go/collection.md | 6 | ||||
-rw-r--r-- | content/go/merger.md | 6 | ||||
-rw-r--r-- | content/go/workflow.md | 19 |
3 files changed, 16 insertions, 15 deletions
diff --git a/content/go/collection.md b/content/go/collection.md index 560f88f..8d74ece 100644 --- a/content/go/collection.md +++ b/content/go/collection.md @@ -8,11 +8,7 @@ gomod = true Go >= 1.18 required. -# Installation - -`go get neonxp.ru/go/collection@latest` - -# Methods +# Методы |Method|Description|Example| |:-----|:----------|------:| diff --git a/content/go/merger.md b/content/go/merger.md index ce355c4..51ccc8b 100644 --- a/content/go/merger.md +++ b/content/go/merger.md @@ -8,12 +8,6 @@ gomod = true Простейший мерджер yaml'ов -## Установка - -``` -go install neonxp.ru/go/merger@latest -``` - ## Использование ``` diff --git a/content/go/workflow.md b/content/go/workflow.md index 9b846bf..3ac4774 100644 --- a/content/go/workflow.md +++ b/content/go/workflow.md @@ -7,9 +7,9 @@ gomod = true outputs = ["html"] +++ -Simple state machine. Inspired by [Symfony Workflow](https://github.com/symfony/workflow). +Простой конечный автомат, похожий на [Symfony Workflow](https://github.com/symfony/workflow). -## Example usage +## Пример ```go o := new(ObjectImplementedPlaceer) @@ -33,7 +33,7 @@ w.GetEnabledTransitions(o) // []Place{"C"} w.DumpToDot() // See above ``` -## Dump result +## Дамп в формат dot ``` digraph { @@ -46,4 +46,15 @@ digraph { C -> Finish[label="C → Finish"]; D -> Finish[label="D → Finish"]; } -```
\ No newline at end of file +``` + +{{< graph >}} +flowchart TD + Start -->|Start → A| A + Start -->|Start → B| B + A -->|A → C| C + B -->|B → D| D + C -->|C → D| D + C -->|C → Finish| Finish + D -->|D → Finish| Finish +{{< /graph >}} |