Skip to content

Commit

Permalink
upgrade to v6 version
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocodes committed Dec 12, 2024
1 parent 2ae201a commit c48119e
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"bytes"
"strings"

"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
"golang.org/x/text/encoding/simplifiedchinese"
)

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/pseudocodes/goctp
module github.com/pseudocodes/goctp/v6

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion libctp.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package goctp
#cgo linux LDFLAGS: -fPIC -L. -L${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64 -Wl,-rpath=${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64 -lthostmduserapi_se -lthosttraderapi_se -lstdc++
#cgo linux CPPFLAGS: -fPIC -I. -I${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64
#cgo darwin LDFLAGS: -L. -L${SRCDIR}/api/v6.6.9_MacOS_20220926 -lthostmduserapi_se -lthosttraderapi_se -lssl -lcrypto -lcomunicationkey -lMacDataCollect -framework Cocoa -framework IOKit
#cgo darwin LDFLAGS: -L. -L${SRCDIR}/api/v6.6.9_MacOS_20220926 -lthostmduserapi_se -lthosttraderapi_se -lssl -lcrypto -lcomunicationkey -framework Cocoa -framework IOKit
#cgo darwin CPPFLAGS: -I. -I${SRCDIR}/api/v6.6.9_MacOS_20220926
*/
Expand Down
2 changes: 1 addition & 1 deletion mdapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

package goctp

import "github.com/pseudocodes/goctp/thost"
import "github.com/pseudocodes/goctp/v6/thost"

type MdSpi interface {

Expand Down
2 changes: 1 addition & 1 deletion mdapi_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import (
"runtime/cgo"
"unsafe"

"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion mdapi_lite.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package goctp

import "github.com/pseudocodes/goctp/thost"
import "github.com/pseudocodes/goctp/v6/thost"

type MdApiLite struct {
*mdApi
Expand Down
2 changes: 1 addition & 1 deletion mdspi_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package goctp

import (
"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

var _ MdSpi = &BaseMdSpi{}
Expand Down
2 changes: 1 addition & 1 deletion sample/simple_market/simple_market.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"os"

"github.com/gookit/goutil/dump"
"github.com/pseudocodes/goctp"
"github.com/pseudocodes/goctp/v6"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions sample/simple_trader/simple_trader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"time"

"github.com/gookit/goutil/dump"
"github.com/pseudocodes/goctp"
dc "github.com/pseudocodes/goctp/data_collect"
"github.com/pseudocodes/goctp/v6"
dc "github.com/pseudocodes/goctp/v6/data_collect"
)

var SimnowEnv map[string]map[string]string = map[string]map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion traderapi.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package goctp

import (
"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

type TraderSpi interface {
Expand Down
2 changes: 1 addition & 1 deletion traderapi_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ import (
"runtime/cgo"
"unsafe"

"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

type TraderOption func(api *traderApi)
Expand Down
2 changes: 1 addition & 1 deletion traderapi_lite.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package goctp

import (
"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

type TraderApiLite struct {
Expand Down
2 changes: 1 addition & 1 deletion traderspi_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package goctp

import (
"github.com/pseudocodes/goctp/thost"
"github.com/pseudocodes/goctp/v6/thost"
)

var _ TraderSpi = &BaseTraderSpi{}
Expand Down

0 comments on commit c48119e

Please sign in to comment.