OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Thu, 3 Dec 2020 14:55:05 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Thu, 3 Dec 2020 14:55:05 +0000 (23:55 +0900)
go.md

diff --git a/go.md b/go.md
index ed3d480..c122862 100644 (file)
--- a/go.md
+++ b/go.md
@@ -233,6 +233,18 @@ for i, val := range entry {
 
 See: [For-Range loops](https://gobyexample.com/range)
 
+### While loop
+
+```go
+n := 0
+x := 42
+for n != x {
+  n := guess()
+}
+```
+
+See: [Go's "while"](https://tour.golang.org/flowcontrol/3)
+
 ## Functions
 {: .-three-column}