---
template:
slug: go-get-cgit
title: Make cgit go gettable
subtitle: go get git.icyphox.sh/* works!
date: 2021-07-14
---
`go get` requires the presence of the `go-import` meta tag[^1] on the
repository's web page. cgit doesn't support it out of the box; instead,
we can make nginx inject it into every page. Enter: `sub_filter`.[^2]
`sub_filter` is a function that simply performs a string replace. For
example:
```nginx
location / {
sub_filter '' '
';
sub_filter_once on;
}
```
In our case, we want to have the meta tag injected inside `