aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go25
1 files changed, 4 insertions, 21 deletions
diff --git a/main.go b/main.go
index 84e16bb..e820184 100644
--- a/main.go
+++ b/main.go
@@ -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()