Newer
Older
package main
import (
"fmt"
"gl.kwarc.info/supervision/schaertl_andreas/ulocollect/core"
"log"
)
func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
i := core.DummyImporter{}
j := core.NewFileSystemJob("/mnt/ramdisk")
c := core.Collector{
Destination: i,
}
if err := c.Submit(j); err != nil {
fmt.Println(err)
}
fmt.Println("/done")