Code Monkey home page Code Monkey logo

otx-go-sdk's People

Contributors

bsmartt13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

otx-go-sdk's Issues

Cannot download via go get or gb vendor fetch

Because the code is nested under the src directory, you cannot use either of the following commands to download the library:

go get github.com/AlienVault-Labs/OTX-Go-SDK
gb vendor fetch github.com/AlienVault-Labs/OTX-Go-SDK

The code should be in the root of the project, the examples folder can remain the same

handle all errors gracefully

don't die like this:

/usr/local/Cellar/go/1.4.2/libexec/bin/go build -o "/private/var/folders/6_/0cj9yrxd0l76c60yh6mws2480000gn/T/otxapi (main)4go" -gcflags "-N -l" /Users/bsmartt/Dev/golang/go-otx-api-client/examples/main.go
"/Users/bsmartt/Library/Application Support/IntelliJIdea15/Go/lib/dlv/mac/dlv" --listen=localhost:59179 --headless=true exec "/private/var/folders/6_/0cj9yrxd0l76c60yh6mws2480000gn/T/otxapi (main)4go" --
/api/v1/user/ response status: 403
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x2c7d]

goroutine 1 [running]:
main.main()
    /Users/bsmartt/Dev/golang/go-otx-api-client/examples/main.go:24 +0xc7d

goroutine 9 [runnable]:
net/http.(*persistConn).readLoop(0xc208074000otxapi.UserDetail{}

)
    /usr/local/Cellar/go/1.4.2/libexec/src/net/http/transport.go:928 +0x9ce
created by net/http.(*Transport).dialConn
    /usr/local/Cellar/go/1.4.2/libexec/src/net/http/transport.go:660 +0xc9f

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/Cellar/go/1.4.2/libexec/src/runtime/asm_amd64.s:2232 +0x1

goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc208074000)
    /usr/local/Cellar/go/1.4.2/libexec/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
    /usr/local/Cellar/go/1.4.2/libexec/src/net/http/transport.go:661 +0xcbc

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.