Skip to content

Commit fdafaf1

Browse files
committed
rename package
1 parent d62a69f commit fdafaf1

26 files changed

+39
-143
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Supports reading both d2s (player saves) ~~and d2i (shared stash)~~ files.
1111
To install the package, use the following:
1212

1313
```bash
14-
go get github.com/vitalick/d2s
14+
go get github.com/vitalick/go-d2editor
1515
```
1616

1717
To install command line program, use the following:
1818

1919
```bash
20-
go install github.com/vitalick/d2s/d2s-conv@latest
20+
go install github.com/vitalick/d2editor-cli@latest
2121
```
2222

2323
## Usage
@@ -26,18 +26,18 @@ go install github.com/vitalick/d2s/d2s-conv@latest
2626

2727
For convert JSON to .d2s, use the following:
2828
```bash
29-
d2s-conv -fromjson <input files>
29+
d2editor-cli -fromjson <input files>
3030
```
3131

3232
For convert .d2s to JSON, use the following:
3333
```bash
34-
d2s-conv -tojson <input files>
34+
d2editor-cli -tojson <input files>
3535
```
3636

3737
To specify the path to the output folder, we use the following:
3838
```bash
39-
d2s-conv -fromjson -o <output folder> <input files>
40-
d2s-conv -tojson -o <output folder> <input files>
39+
d2editor-cli -fromjson -o <output folder> <input files>
40+
d2editor-cli -tojson -o <output folder> <input files>
4141
```
4242

4343
### As package

appearance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
import "math"
44

appearances.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
//Appearances ...
44
type Appearances struct {

character.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package d2s
1+
package d2editor
22

33
import (
44
"bytes"
55
"encoding/binary"
6-
"github.com/vitalick/d2s/consts"
7-
"github.com/vitalick/d2s/npcdialogs"
8-
"github.com/vitalick/d2s/quests"
9-
"github.com/vitalick/d2s/waypoints"
6+
"github.com/vitalick/go-d2editor/consts"
7+
"github.com/vitalick/go-d2editor/npcdialogs"
8+
"github.com/vitalick/go-d2editor/quests"
9+
"github.com/vitalick/go-d2editor/waypoints"
1010
"io"
1111
"time"
1212
)

class.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
import "fmt"
44

consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
const (
44
nameSize = 16

consts/go.mod

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

d2s-conv/README.md

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

d2s-conv/main.go

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

d2s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
import (
44
"encoding/json"

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
import "errors"
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/vitalick/d2s
1+
module github.com/vitalick/go-d2editor
22

33
go 1.13
44

header.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package d2s
1+
package d2editor
22

33
import (
44
"encoding/binary"
5-
"github.com/vitalick/d2s/consts"
5+
"github.com/vitalick/go-d2editor/consts"
66
"io"
77
)
88

location.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
//Location is information about difficult and opened acts on it
44
type Location struct {

locations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package d2s
1+
package d2editor
22

33
import (
44
"encoding/binary"
5-
"github.com/vitalick/d2s/consts"
5+
"github.com/vitalick/go-d2editor/consts"
66
"io"
77
)
88

mercenary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
//Mercenary ...
44
type Mercenary struct {

npcdialogs/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package npcdialogs
22

33
import (
4-
"github.com/vitalick/d2s/consts"
4+
"github.com/vitalick/go-d2editor/consts"
55
)
66

77
var (

npcdialogs/difficulty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"errors"
66
"github.com/vitalick/bitslice"
7-
"github.com/vitalick/d2s/utils"
7+
"github.com/vitalick/go-d2editor/utils"
88
)
99

1010
type DifficultyImportMap map[string]NPCDialogData

quests/act.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package quests
33
import (
44
"encoding/json"
55
"errors"
6-
"github.com/vitalick/d2s/consts"
7-
"github.com/vitalick/d2s/utils"
6+
"github.com/vitalick/go-d2editor/consts"
7+
"github.com/vitalick/go-d2editor/utils"
88
"io"
99
)
1010

quests/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package quests
22

33
import (
4-
"github.com/vitalick/d2s/consts"
4+
"github.com/vitalick/go-d2editor/consts"
55
)
66

77
var (

quests/difficulty.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"bytes"
55
"encoding/binary"
66
"encoding/json"
7-
"github.com/vitalick/d2s/consts"
8-
"github.com/vitalick/d2s/utils"
7+
"github.com/vitalick/go-d2editor/consts"
8+
"github.com/vitalick/go-d2editor/utils"
99
"io"
1010
)
1111

quests/quest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"encoding/json"
55
"errors"
66
"github.com/vitalick/bitslice"
7-
"github.com/vitalick/d2s/consts"
8-
"github.com/vitalick/d2s/utils"
7+
"github.com/vitalick/go-d2editor/consts"
8+
"github.com/vitalick/go-d2editor/utils"
99
"io"
1010
)
1111

skill.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package d2s
1+
package d2editor
22

33
import "math"
44

status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package d2s
1+
package d2editor
22

33
import (
44
"encoding/binary"
5-
"github.com/vitalick/d2s/consts"
5+
"github.com/vitalick/go-d2editor/consts"
66
"io"
77
)
88

waypoints/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package waypoints
22

33
import (
4-
"github.com/vitalick/d2s/consts"
4+
"github.com/vitalick/go-d2editor/consts"
55
)
66

77
var (

waypoints/difficulty.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/binary"
66
"encoding/json"
77
"github.com/vitalick/bitslice"
8-
"github.com/vitalick/d2s/consts"
9-
"github.com/vitalick/d2s/utils"
8+
"github.com/vitalick/go-d2editor/consts"
9+
"github.com/vitalick/go-d2editor/utils"
1010
"io"
1111
)
1212

0 commit comments

Comments
 (0)