OSDN Git Service
(root)
/
twpd
/
master.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34c472a
)
Regular updates
author
Erik
<erikgronwal@users.osdn.me>
Thu, 3 Dec 2020 14:55:05 +0000
(23:55 +0900)
committer
Erik
<erikgronwal@users.osdn.me>
Thu, 3 Dec 2020 14:55:05 +0000
(23:55 +0900)
go.md
patch
|
blob
|
history
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}