Gopkg.toml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ## Gopkg.toml example (these lines may be deleted)
  2. ## "required" lists a set of packages (not projects) that must be included in
  3. ## Gopkg.lock. This list is merged with the set of packages imported by the current
  4. ## project. Use it when your project needs a package it doesn't explicitly import -
  5. ## including "main" packages.
  6. # required = ["github.com/user/thing/cmd/thing"]
  7. ## "ignored" lists a set of packages (not projects) that are ignored when
  8. ## dep statically analyzes source code. Ignored packages can be in this project,
  9. ## or in a dependency.
  10. # ignored = ["github.com/user/project/badpkg"]
  11. ## Dependencies define constraints on dependent projects. They are respected by
  12. ## dep whether coming from the Gopkg.toml of the current project or a dependency.
  13. # [[dependencies]]
  14. ## Required: the root import path of the project being constrained.
  15. # name = "github.com/user/project"
  16. #
  17. ## Recommended: the version constraint to enforce for the project.
  18. ## Only one of "branch", "version" or "revision" can be specified.
  19. # version = "1.0.0"
  20. # branch = "master"
  21. # revision = "abc123"
  22. #
  23. ## Optional: an alternate location (URL or import path) for the project's source.
  24. # source = "https://github.com/myfork/package.git"
  25. ## Overrides have the same structure as [[dependencies]], but supercede all
  26. ## [[dependencies]] declarations from all projects. Only the current project's
  27. ## [[overrides]] are applied.
  28. ##
  29. ## Overrides are a sledgehammer. Use them only as a last resort.
  30. # [[overrides]]
  31. ## Required: the root import path of the project being constrained.
  32. # name = "github.com/user/project"
  33. #
  34. ## Optional: specifying a version constraint override will cause all other
  35. ## constraints on this project to be ignored; only the overriden constraint
  36. ## need be satisfied.
  37. ## Again, only one of "branch", "version" or "revision" can be specified.
  38. # version = "1.0.0"
  39. # branch = "master"
  40. # revision = "abc123"
  41. #
  42. ## Optional: specifying an alternate source location as an override will
  43. ## enforce that the alternate location is used for that project, regardless of
  44. ## what source location any dependent projects specify.
  45. # source = "https://github.com/myfork/package.git"
  46. [[dependencies]]
  47. branch = "master"
  48. name = "github.com/dutchcoders/go-clamd"