Skip to content

Instantly share code, notes, and snippets.

@cocap10
Created August 4, 2016 15:23
Show Gist options
  • Save cocap10/6742ba6bf48d82b62feae2c6c8f2af4c to your computer and use it in GitHub Desktop.
Save cocap10/6742ba6bf48d82b62feae2c6c8f2af4c to your computer and use it in GitHub Desktop.
// Create staert object
s:=staert.NewStaert(command)
// Adding sources
s.AddSource(toml)
s.AddSource(f)
s.AddSource(kv)
// Parse and merge sources
loadedConfig, err := s.LoadConfig()
// Run
err := s.Run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment