mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 09:18:59 +00:00
1 line
3.2 KiB
JSON
1 line
3.2 KiB
JSON
{"pageProps":{"metadata":{"date":"2021-07-27 10:38:45 +08:00","date_modified":"2021-07-28 10:43:39 +08:00","language":"en","source":""},"title":"Go packages","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://golang.org/ref/mod"},"children":[{"type":"text","value":"reference page"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"names are traditionally URL-like (e.g., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"github.com/gohugoio/hugo"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"github.com/errata-ai/vale"}]},{"type":"text","value":") similar to "},{"type":"element","tagName":"a","properties":{"href":"roam:Deno packages"},"children":[{"type":"text","value":"roam:Deno packages"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"has to be explicitly set with the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"go.mod"}]},{"type":"text","value":" file (i.e., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"module MODULE_NAME"}]},{"type":"text","value":")\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"go.sum"}]},{"type":"text","value":" functions similarly to lockfiles containing cryptographic hashes of the modules used for a successful build\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Go modules can be vendored (e.g., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"go mod vendor"}]},{"type":"text","value":");\n it will be stored in the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"vendor/"}]},{"type":"text","value":" directory of the root module\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"example of a project using vendored Go modules is "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/errata-ai/vale/tree/v2.5.0"},"children":[{"type":"text","value":"Vale v2.5.0"}]}]}]}]}]}]}]},"backlinks":[]},"__N_SSG":true} |