This website works better with JavaScript.
Home
Help
Sign In
tmeissner
/
go_workshop
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add remaining activities of chapter 01
master
T. Meissner
5 years ago
parent
07cbe9ece0
commit
89c38eef04
2 changed files
with
34 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+18
-0
chapter_01/activity_1.03/main.go
+16
-0
chapter_01/activity_1.04/main.go
+ 18
- 0
chapter_01/activity_1.03/main.go
View File
@ -0,0 +1,18 @@
package
main
import
"fmt"
func
main
(
)
{
count
:=
5
var
message
string
if
count
>
5
{
message
=
"Greater than 5"
}
else
{
message
=
"Not greater than 5"
}
fmt
.
Println
(
message
)
}
+ 16
- 0
chapter_01/activity_1.04/main.go
View File
@ -0,0 +1,16 @@
package
main
import
"fmt"
func
main
(
)
{
count
:=
0
if
count
<
5
{
count
=
10
count
++
}
fmt
.
Println
(
count
==
11
)
}
Write
Preview
Loading…
Cancel
Save