4 ms·
At work I often use Go notation for quickly describing my models to share with other devs, or for collaboratively iterating on ideas; both in text form and on U
by kgeist 4y ago
At work I often use Go notation for quickly describing my models to share with other devs, or for collaboratively iterating on ideas; both in text form and on UML diagrams.
The syntax is pretty simple and doesn't have "noise", it supports type aliases, too ("type Email string"), you can emulate optionals, there are useful built-in containers such as slices and maps on the language level (no need to import additional packages), most IDEs support syntax highlighting, etc.
It's an ad hoc solution and there's no tooling for it but Go has a built-in parser for its syntax so technically it's not hard to write a codegen tool based on that.