Go Modules

How package is downloaded

The server must respond with an HTML document containing a <meta> tag in the document’s <head>. The <meta> tag should appear early in the document to avoid confusing the go command’s restricted parser. In particular, it should appear before any raw JavaScript or CSS. The <meta> tag must have the form:

<meta name="go-import" content="root-path vcs repo-url">

Example:

$ curl pkg.domain.com/go/module?go-get=1

<html><head><meta name="go-import" content="pkg.domain.com/go/module git git+ssh://git@xxx/path/to/repo"/></head></html>