Skip to content

Commit

Permalink
Merge pull request #116 from Jleagle/master
Browse files Browse the repository at this point in the history
Fix module paths - Fixes #115
  • Loading branch information
Philipp15b authored Apr 24, 2021
2 parents f5f3f40 + 43ff7eb commit 19f4df7
Show file tree
Hide file tree
Showing 41 changed files with 254 additions and 238 deletions.
8 changes: 4 additions & 4 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"sync/atomic"
"time"

. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
"github.com/golang/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions auth_events.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package steam

import (
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

type LoggedOnEvent struct {
Expand Down
12 changes: 6 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"sync/atomic"
"time"

"github.com/Philipp15b/go-steam/cryptoutil"
"github.com/Philipp15b/go-steam/netutil"
. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
"github.com/Philipp15b/go-steam/v2/cryptoutil"
"github.com/Philipp15b/go-steam/v2/netutil"
. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

// Represents a client to the Steam network.
Expand Down
2 changes: 1 addition & 1 deletion client_events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package steam

import (
"github.com/Philipp15b/go-steam/netutil"
"github.com/Philipp15b/go-steam/v2/netutil"
)

// When this event is emitted by the Client, the connection is automatically closed.
Expand Down
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net"
"sync"

"github.com/Philipp15b/go-steam/cryptoutil"
. "github.com/Philipp15b/go-steam/protocol"
"github.com/Philipp15b/go-steam/v2/cryptoutil"
. "github.com/Philipp15b/go-steam/v2/protocol"
)

type connection interface {
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ You can also find a running example in the `gsbot` package.
"io/ioutil"
"log"
"github.com/Philipp15b/go-steam"
"github.com/Philipp15b/go-steam/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2"
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
)
func main() {
Expand Down
3 changes: 2 additions & 1 deletion economy/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/Philipp15b/go-steam/jsont"
"strconv"

"github.com/Philipp15b/go-steam/v2/jsont"
)

type GenericInventory map[uint32]map[uint64]*Inventory
Expand Down
3 changes: 2 additions & 1 deletion economy/inventory/inventory_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package inventory
import (
"encoding/json"
"fmt"
"github.com/Philipp15b/go-steam/steamid"
"io/ioutil"
"net/http"
"regexp"
"strconv"

"github.com/Philipp15b/go-steam/v2/steamid"
)

type InventoryApps map[string]*InventoryApp
Expand Down
9 changes: 5 additions & 4 deletions gamecoordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package steam

import (
"bytes"
. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/gamecoordinator"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"

. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/gamecoordinator"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/golang/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions generator/GoSteamLanguageGenerator/GoGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public void EmitClasses(Node root, StringBuilder sb)
sb.AppendLine(" \"io\"");
sb.AppendLine(" \"encoding/binary\"");
sb.AppendLine(" \"github.com/golang/protobuf/proto\"");
sb.AppendLine(" \"github.com/Philipp15b/go-steam/steamid\"");
sb.AppendLine(" \"github.com/Philipp15b/go-steam/rwu\"");
sb.AppendLine(" . \"github.com/Philipp15b/go-steam/protocol/protobuf\"");
sb.AppendLine(" \"github.com/Philipp15b/go-steam/v2/steamid\"");
sb.AppendLine(" \"github.com/Philipp15b/go-steam/v2/rwu\"");
sb.AppendLine(" . \"github.com/Philipp15b/go-steam/v2/protocol/protobuf\"");
sb.AppendLine(")");
sb.AppendLine();

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Philipp15b/go-steam
module github.com/Philipp15b/go-steam/v2

go 1.14

Expand Down
6 changes: 3 additions & 3 deletions gsbot/gsbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"reflect"
"time"

"github.com/Philipp15b/go-steam"
"github.com/Philipp15b/go-steam/netutil"
"github.com/Philipp15b/go-steam/protocol"
"github.com/Philipp15b/go-steam/v2"
"github.com/Philipp15b/go-steam/v2/netutil"
"github.com/Philipp15b/go-steam/v2/protocol"
"github.com/davecgh/go-spew/spew"
)

Expand Down
6 changes: 3 additions & 3 deletions gsbot/gsbot/gsbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"fmt"
"os"

"github.com/Philipp15b/go-steam"
"github.com/Philipp15b/go-steam/gsbot"
"github.com/Philipp15b/go-steam/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2"
"github.com/Philipp15b/go-steam/v2/gsbot"
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package steam

import (
"crypto/rsa"
"github.com/Philipp15b/go-steam/cryptoutil"
. "github.com/Philipp15b/go-steam/protocol/steamlang"

"github.com/Philipp15b/go-steam/v2/cryptoutil"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
)

var publicKeys = map[EUniverse][]byte{
Expand Down
6 changes: 3 additions & 3 deletions notifications.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package steam

import (
. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
)

type Notifications struct {
Expand Down
4 changes: 2 additions & 2 deletions protocol/gamecoordinator/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gamecoordinator
import (
"io"

. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/golang/protobuf/proto"
)

Expand Down
7 changes: 4 additions & 3 deletions protocol/gamecoordinator/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package gamecoordinator

import (
"bytes"
. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"

. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/golang/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion protocol/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math"
"strconv"

. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
)

type JobId uint64
Expand Down
7 changes: 4 additions & 3 deletions protocol/msg.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package protocol

import (
"github.com/golang/protobuf/proto"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
"io"

. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
"github.com/golang/protobuf/proto"
)

// Interface for all messages, typically outgoing. They can also be created by
Expand Down
5 changes: 3 additions & 2 deletions protocol/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package protocol

import (
"bytes"
"github.com/golang/protobuf/proto"
"encoding/binary"
"fmt"
. "github.com/Philipp15b/go-steam/protocol/steamlang"

. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/golang/protobuf/proto"
)

// TODO: Headers are always deserialized twice.
Expand Down
9 changes: 5 additions & 4 deletions protocol/steamlang/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package steamlang

import (
"encoding/binary"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
"github.com/Philipp15b/go-steam/rwu"
"github.com/Philipp15b/go-steam/steamid"
"github.com/golang/protobuf/proto"
"io"

. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
"github.com/Philipp15b/go-steam/v2/rwu"
"github.com/Philipp15b/go-steam/v2/steamid"
"github.com/golang/protobuf/proto"
)

const UdpHeader_MAGIC uint32 = 0x31305356
Expand Down
2 changes: 1 addition & 1 deletion servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/rand"
"time"

"github.com/Philipp15b/go-steam/netutil"
"github.com/Philipp15b/go-steam/v2/netutil"
)

// CMServers contains a list of worlwide servers
Expand Down
12 changes: 6 additions & 6 deletions social.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"sync"
"time"

. "github.com/Philipp15b/go-steam/protocol"
. "github.com/Philipp15b/go-steam/protocol/protobuf"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/rwu"
"github.com/Philipp15b/go-steam/socialcache"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol"
. "github.com/Philipp15b/go-steam/v2/protocol/protobuf"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/rwu"
"github.com/Philipp15b/go-steam/v2/socialcache"
. "github.com/Philipp15b/go-steam/v2/steamid"
"github.com/golang/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions social_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package steam
import (
"time"

. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

type FriendsListEvent struct{}
Expand Down
5 changes: 3 additions & 2 deletions socialcache/chats.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package socialcache

import (
"errors"
. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
"sync"

. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

// Chats list is a thread safe map
Expand Down
4 changes: 2 additions & 2 deletions socialcache/friends.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"sync"

. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

// Friends list is a thread safe map
Expand Down
4 changes: 2 additions & 2 deletions socialcache/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"sync"

. "github.com/Philipp15b/go-steam/protocol/steamlang"
. "github.com/Philipp15b/go-steam/steamid"
. "github.com/Philipp15b/go-steam/v2/protocol/steamlang"
. "github.com/Philipp15b/go-steam/v2/steamid"
)

// Groups list is a thread safe map
Expand Down
2 changes: 1 addition & 1 deletion steam_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/Philipp15b/go-steam/netutil"
"github.com/Philipp15b/go-steam/v2/netutil"
)

// Load initial server list from Steam Directory Web API.
Expand Down
Loading

0 comments on commit 19f4df7

Please sign in to comment.