package main import ( "fmt" ) func mainn() { // testStorage() storage := NewStorage("localhost", 27017, "testing") err := storage.Connect(nil) if err != nil { panic(err) } importer := NewPcapImporter(&storage, "10.10.10.10") sessionId, err := importer.ImportPcap("capture_00459_20190627165500.pcap") if err != nil { fmt.Println(err) } else { fmt.Println(sessionId) } }