Open woanware opened 8 years ago
go get github.com/infoassure/OTX-Go-SDK
can't load package: package github.com/AlienVault-Labs/OTX-Go-SDK: no buildable Go source files in /data/prj/source/src/github.com/AlienVault-Labs/OTX-Go-SDK
Originally forked, but decided to make a lot of changes. Use code as you want:
@woanware thanks so much! Would you mind making a PR so I can merge these fixes?
Well they aren't really fixes, it has been completely rewritten, so it will be hard to merge as every file has changed, along with the location?
@woanware For what it's worth, $ go get github.com/AlienVault-Labs/OTX-Go-SDK
does not work, but $ go get github.com/AlienVault-Labs/OTX-Go-SDK/src/otxapi
does work.
@nesv ah OK. Would have to work out where it works with gb as I mainly use that for dependencies. Though I wrote my own API client in the end. https://github.com/infoassure/otx-go-client
@woanware I use gb as well, and gb vendor fetch github.com/AlienVault-Labs/OTX-Go-SDK/src/otxapi
seems to work.
I wish I had seen this issue earlier, as I currently have a pending pull request. :laughing:
@nesv Just ran my project that is using my OTX client and something has changed, so I used your refactor branch, and have updated my code to use it. The conversion took about 30 minutes and works perfectly. I am glad you didn't see mine first, as mine was a rush job to get my project done, so yours should definitely be accepted via the pull request!
Because the code is nested under the src directory, you cannot use either of the following commands to download the library:
The code should be in the root of the project, the examples folder can remain the same