Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0812982

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /