Skip to content

Commit 0812982

Browse files
committed
adds class scode
1 parent 38ff57d commit 0812982

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Hello world")
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
)
6+
7+
func main() {
8+
fmt.Println("Hello world")
9+
}

000_temp/63fall2018/003-func/func.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
)
6+
7+
func main() {
8+
fmt.Println("Hello world")
9+
secondStatement()
10+
finalStat()
11+
}
12+
13+
// func receiver identifier(parameters) returns {code}
14+
15+
func secondStatement() {
16+
fmt.Println("Here is my second statement")
17+
}
18+
19+
func finalStat() {
20+
fmt.Println("about to exit")
21+
}

0 commit comments

Comments
 (0)