Code Monkey home page Code Monkey logo

Comments (7)

eynzhang avatar eynzhang commented on June 2, 2024

@xf005 , could you tell us how you use the SDK and why do you want to import internal package?

The purpose of internal package, as the name indiated, is used internally, you don’t need to care about the internal package. What you need to import is the “pkg” package.

from huobi_golang.

xf005 avatar xf005 commented on June 2, 2024

Go module management project,reuse websocket method in cmd package. It's confusing to use the websocket method from the example in my project.

from huobi_golang.

eynzhang avatar eynzhang commented on June 2, 2024

The example just shows how to use the “client” package, you should import the client package in your own project, and write something similar with the examples.

Today we introduce the go modules and updated the README file, it is easier to import the package in your own project now.

from huobi_golang.

simpdo avatar simpdo commented on June 2, 2024

when i create accountwebsocketclient.RequestAccountWebSocketV1Client , the client method SetHandler first param websocketclientbase.AuthenticationV1ResponseHandler which define func(resp *model.WebSocketV1AuthenticationResponse), the function param resp used internal pkg

from huobi_golang.

eynzhang avatar eynzhang commented on June 2, 2024

@simpdo I noticed that issue and I will do a fix. Thanks for the feedback.

from huobi_golang.

eynzhang avatar eynzhang commented on June 2, 2024

We have fixed this issue by moving websocket authentication response from internal to pkg, now you can get latest code from master branch.

from huobi_golang.

xyths avatar xyths commented on June 2, 2024

@eynzhang i have the same issue today, when i update to latest code, it fixed, thank you.

from huobi_golang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.