diff --git a/examples/json/json.go b/examples/json/json.go index 7b10e0b..137fe03 100644 --- a/examples/json/json.go +++ b/examples/json/json.go @@ -69,7 +69,7 @@ func main() { // Now let's look at decoding JSON data into Go // values. Here's an example for a generic data // structure. - byt := []byte(`{"num":6.0,"strs":["a","b"]}`) + byt := []byte(`{"num":6.13,"strs":["a","b"]}`) // We need to provide a variable where the JSON // package can put the decoded data. This diff --git a/examples/json/json.hash b/examples/json/json.hash index 2b57c3a..25df7f9 100644 --- a/examples/json/json.hash +++ b/examples/json/json.hash @@ -1,2 +1,2 @@ -12f985bb444e2bd6d72ea52a24ebc5f4f82c5b9b -4L2wMVv7tW +9a3d67892b3930bceb1167b59d4d4f5527dadefc +scgxBwACYx diff --git a/examples/json/json.sh b/examples/json/json.sh index 0eaefee..3714902 100644 --- a/examples/json/json.sh +++ b/examples/json/json.sh @@ -7,8 +7,8 @@ true {"apple":5,"lettuce":7} {"Page":1,"Fruits":["apple","peach","pear"]} {"page":1,"fruits":["apple","peach","pear"]} -map[num:6 strs:[a b]] -6 +map[num:6.13 strs:[a b]] +6.13 a &{1 [apple peach]} apple diff --git a/public/hello-world b/public/hello-world index 164292d..aeffb56 100644 --- a/public/hello-world +++ b/public/hello-world @@ -25,7 +25,7 @@ -

Our first program will print the classic “hello world” +

Our first program will print the classic “hello world”` message. Here’s the full source code.

diff --git a/public/interfaces b/public/interfaces index 2064108..e15cfcc 100644 --- a/public/interfaces +++ b/public/interfaces @@ -172,7 +172,7 @@ to work on any geometry.

The circle and square struct types both implement the geometry interface so we can use instances of -these structs as arguments to measure.

+these structs as arguments to `measure.

diff --git a/public/json b/public/json index 902e21f..535869b 100644 --- a/public/json +++ b/public/json @@ -41,7 +41,7 @@ data types.

- +
package main
 
@@ -229,7 +229,7 @@ structure.

-
    byt := []byte(`{"num":6.0,"strs":["a","b"]}`)
+            
    byt := []byte(`{"num":6.13,"strs":["a","b"]}`)
 
@@ -361,8 +361,8 @@ stream JSON encodings directly to os.Writers like {"apple":5,"lettuce":7} {"Page":1,"Fruits":["apple","peach","pear"]} {"page":1,"fruits":["apple","peach","pear"]} -map[num:6 strs:[a b]] -6 +map[num:6.13 strs:[a b]] +6.13 a &{1 [apple peach]} apple