Last active
June 4, 2019 18:36
-
-
Save mantzas/caca23d07f775b250d21fd56bc10dd40 to your computer and use it in GitHub Desktop.
harvester instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfg := config{} | |
h, err := harvester.New(&cfg).Create() | |
if err != nil { | |
log.Fatalf("failed to create harvester: %v", err) | |
} | |
err = h.Harvest(ctx) | |
if err != nil { | |
log.Fatalf("failed to harvest configuration: %v", err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment