Skip to content

Commit 3d6aa49

Browse files
authored
update example data
1 parent f992447 commit 3d6aa49

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,19 @@ func main() {
3030
func example() {
3131

3232
m := map[string][]string{
33-
"Warc-Type": { "response" }
33+
"some-key": { "response" },
34+
"Another-Hash-Key": { "first value", "second value" },
3435
}
3536

36-
fmt.Println(m) // fmt the default formatting.
37+
fmt.Println(m) // fmt the default formatting
3738
/*
38-
map[ ]
39+
map[some-key:[response] Another-Hash-Key:[first value second value]]
3940
*/
4041

41-
bmfmt.Beautify(m) // More friendly formatting.
42+
bmfmt.Beautify(m) // significant more friendly formatting
4243
/*
43-
[ "Warc-Type" string( 9) ]: "response" string( 8)
44-
[ "Warc-Date" string( 9) ]: "2014-08-02T09:52:13Z" string( 20)
45-
[ "Content-Length" string( 14) ]: "43428" string( 5)
46-
[ "Warc-Payload-Digest" string( 19) ]: "sha1:M63W6MNGFDWXDSLTHF7GWUPCJUH4JK3J" string( 37)
47-
[ "Warc-Block-Digest" string( 17) ]: "sha1:YHKQUSBOS4CLYFEKQDVGJ457OAPD6IJO" string( 37)
48-
[ "Warc-Truncated" string( 14) ]: "length" string( 6)
49-
[ "Warc-Record-Id" string( 14) ]: "<urn:uuid:ffbfb0c0-6456-42b0-af03-3867be6fc09f>", "<urn:uuid:ffbfb0c0-6456-42b0-af03-xxxxxxxxxxx>" string( 97)
50-
[ "Content-Type" string( 12) ]: "application/http; msgtype=response" string( 34)
51-
[ "Warc-Warcinfo-Id" string( 16) ]: "<urn:uuid:3169ca8e-39a6-42e9-a4e3-9f001f067bdf>" string( 47)
52-
[ "Warc-Concurrent-To" string( 18) ]: "<urn:uuid:d99f2a24-158a-4c77-bb0a-3cccd40aad56>" string( 47)
53-
[ "Warc-Ip-Address" string( 15) ]: "212.58.244.61" string( 13)
54-
[ "Warc-Target-Uri" string( 15) ]: "http://news.bbc.co.uk/2/hi/africa/3414345.stm" string( 45)
55-
44+
[ "some-key" string( 8) ]: "response" string( 8)
45+
[ "Another-Hash-Key" string( 16) ]: "first value", "second value" string( 20)
5646
*/
5747

5848
}

0 commit comments

Comments
 (0)