From 40eed48739d5d91ac04140d9d7034f1419661ec7 Mon Sep 17 00:00:00 2001 From: Wilson Anyonga Date: Sat, 9 Apr 2022 09:40:40 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 899028a..cabe0ca 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,13 @@ var foo = 42 // type omitted, will be inferred foo := 42 // shorthand, only in func bodies, omit var keyword, type is always implicit const constant = "This is a constant" +// Declaring multiple variables at once +var ( + aaa int + bbb int = 8 + ccc string = "a" +) + // iota can be used for incrementing numbers, starting from 0 const ( _ = iota