Skip to content

Commit 3c2a1c3

Browse files
committed
you're doing great
1 parent dffb4d0 commit 3c2a1c3

File tree

20 files changed

+5
-9097
lines changed

20 files changed

+5
-9097
lines changed

040_json/12_null/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ func main() {
1515
log.Fatalln(err)
1616
}
1717
fmt.Println(a)
18+
fmt.Println(len(a))
19+
fmt.Println(cap(a))
1820
}

040_json/13_marshal/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ type model struct {
1313
func main() {
1414
m := model{}
1515

16+
fmt.Println(m)
17+
1618
bs, err := json.Marshal(m)
1719
if err != nil {
1820
fmt.Println("error: ", err)

040_json/16_hands-on/instructions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ IN AN HTML FILE
22

33
Create an array to hold objects in javascript.
44

5-
Each object should store a "Code" as in a number and "Descrip" as a string.
5+
Each object should store a "Code" as a number and "Descrip" as a string.
66

77
The array should hold all of the objects. Create objects for the following HTTP status codes:
88

040_json/18_hands-on/instructions.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

040_json/19_solution/index.html

Lines changed: 0 additions & 116 deletions
This file was deleted.

040_json/20_hands-on/instructions.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.

040_json/21_solution/01_stoners/01/main.go

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)