aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer
diff options
context:
space:
mode:
authorfaiface <faiface2202@gmail.com>2019-05-06 18:44:54 +0200
committerfaiface <faiface2202@gmail.com>2019-05-06 18:44:54 +0200
commit8a67ed9e640b830d307bfa56d7f445673cc576ed (patch)
treeed69819b6ff49ba5ba6b589d7136c45501b6a5e2 /examples/imageviewer
parenteb2426aae90421f4ca6940b623a7f94d73b8662f (diff)
downloadgui-8a67ed9e640b830d307bfa56d7f445673cc576ed.zip
examples: add READMEs for the ramaining examples
Diffstat (limited to 'examples/imageviewer')
-rw-r--r--examples/imageviewer/README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/imageviewer/README.md b/examples/imageviewer/README.md
index c0cc189..45062c2 100644
--- a/examples/imageviewer/README.md
+++ b/examples/imageviewer/README.md
@@ -15,3 +15,5 @@ The file browser accepts messages from the `cd` channel of type `chan string`. T
The viewer element accepts messages from the `view` channel of type `chan string`. When you click two times on a file in the file browser, the browser sends the file name to the viewer over this channel. The viewer will attempt to open and decode the file and shows the image if it succeeds. Otherwise it shows text _'Invalid image'_.
The most visible advantage of the concurrent approach here is that when the image takes longer to load, the rest of the UI remains responsive. Another, subtler advantage is that each element is self-contained, implemented using simple loops. The program should therefore be easy to understand and extend (the only barrier to understanding could be that I wrote it over an evening, but I'll try and make the code cleaner over time).
+
+Uses [golang.org/x/image/font](https://godoc.org/golang.org/x/image/font) for drawing text.