Skip to content

Instantly share code, notes, and snippets.

@o314
Created April 8, 2020 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save o314/b0f35d39ffe2481deaa100a9c2e1c327 to your computer and use it in GitHub Desktop.
Save o314/b0f35d39ffe2481deaa100a9c2e1c327 to your computer and use it in GitHub Desktop.
Diagram of how-i-would-like-to-write-golang

http://bionics.it/posts/how-i-would-like-to-write-golang

split.In = hisay.Out
lower.In = split.OutLeft
upper.In = split.OutRight
zippr.In1 = lower.Out
zippr.In2 = upper.Out
prntr.In = zipp

becomes


                        +-----+
                 +----> |lower| ------+
+-----+      +---+-+    +-----+    +--v--+      +-----+
|hisay| ---> |split|               |zippr| ---> |prntr|
+-----+      +---+-+               +-----+      +-----+
                 |      +-----+       ^
                 +----> |upper| ------+
                        +-----+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment