Skip to content

Commit b44089f

Browse files
author
Jan Stümmel
committed
fix, typos in readme and test
1 parent 32feb1b commit b44089f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Go package for parsing csgo server logfiles. It exports types for csgo logfiles,
66

77
## Usage
88

9-
For more examples look at the [tests](./csgolog_test.go) and the command-line utility in [examples folder](./examples). Have also a look at [godoc]((http://godoc.org/github.com/janstuemmel/csgo-log)).
9+
For more examples look at the [tests](./csgolog_test.go) and the command-line utility in [examples folder](./example). Have also a look at [godoc](http://godoc.org/github.com/janstuemmel/csgo-log).
1010

1111
```go
1212
package main

csgolog_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func ExampleParse() {
1414
// a line from a server logfile
1515
line := `L 11/05/2018 - 15:44:36: "Player<12><STEAM_1:1:0101011><CT>" purchased "m4a1"`
1616

17-
// parse into Message
17+
// parse Message
1818
msg, _ = Parse(line)
1919

2020
fmt.Println(msg.GetType())
@@ -26,17 +26,17 @@ func ExampleParse() {
2626

2727
func ExampleToJSON() {
2828

29-
// parse into Message
29+
// parse Message
3030
msg, _ := Parse(`L 11/05/2018 - 15:44:36: "Player<12><STEAM_1:1:0101011><CT>" purchased "m4a1"`)
3131

32-
// cast Message interface to PlayerPurchase type
32+
// cast Message interface type to PlayerPurchase type
3333
playerPurchase, _ := msg.(PlayerPurchase)
3434

3535
fmt.Println(playerPurchase.Player.SteamID)
3636
fmt.Println(playerPurchase.Item)
3737

38-
// get json non-htmlescaped
39-
jsn := ToJSON(msg) // csgolog.ToJSON(msg)
38+
// get json non-html-escaped
39+
jsn := ToJSON(msg)
4040

4141
fmt.Println(jsn)
4242
// Output:

0 commit comments

Comments
 (0)