Skip to content

viiftw/cveapi-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cveapi-go

License

Golang client for cveapi API

Usage

package main

import (
    "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]
}

Releases

No releases published

Packages

No packages published

Languages