https://github.com/viiftw/cveapi-go
Golang client for cveapi API
https://github.com/viiftw/cveapi-go
cve cveapi golang-client golang-library
Last synced: 2 months ago
JSON representation
Golang client for cveapi API
- Host: GitHub
- URL: https://github.com/viiftw/cveapi-go
- Owner: viiftw
- License: mit
- Created: 2020-06-03T09:57:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T10:03:51.000Z (almost 5 years ago)
- Last Synced: 2025-01-17T01:48:05.853Z (4 months ago)
- Topics: cve, cveapi, golang-client, golang-library
- Language: Go
- Homepage: https://cveapi.com/
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cveapi-go
[](https://opensource.org/licenses/MIT)
Golang client for [cveapi](https://cveapi.com/) API
## Usage
```go
package mainimport (
"fmt"
"github.com/viiftw/cveapi-go"
)func main() {
client := cveapi.NewClient()// get cve data
cveID := "CVE-2019-9956"
cveData, err := client.GetCVEData(cveID)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(cveData.Cve.CVEDataMeta.ID, cveData.Cve.CVEDataMeta.Assigner)
}
// => CVE-2019-9956 [email protected]
}
```