diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 25 |
1 files changed, 4 insertions, 21 deletions
@@ -1,31 +1,14 @@ package main import ( - "encoding/json" + // "encoding/json" // "fmt" - "log" + // "log" // "nvd/internal/cvss" - "nvd/internal/feed" - "os" + // "nvd/internal/feed" + // "os" ) -// Test feed parser -func testFeedParser() { - var f feed.Feed - - // decode cve feed - d := json.NewDecoder(os.Stdin) - if err := d.Decode(&f); err != nil { - log.Fatal(err) - } - - // create json encoder - e := json.NewEncoder(os.Stdout) - if err := e.Encode(f); err != nil { - log.Fatal(err) - } -} - func main() { // testMetaParser() // testFeedParser() |