octomation / go-module

🧩 Template for a typical module written on Go.

Home Page:https://go-module.octolab.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev: maintainer and module renaming

kamilsk opened this issue · comments

Motivation: improve DX to start your own module quicker.

Details

Instead of

Update files:
- docs/CNAME, tools/pages/*, tools/*.jsx?,
- go.mod, and README.md:

Do this

$ maintainer go mod init github.com/new/owner

Also, write notes "How to make your own module", extended version (https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository).

Example

$ make tools
$ go mod edit -module go.octolab.org/ecosystem/tablo
$ find **/*.go -exec sed -i '' "s|go.octolab.org/template/service|go.octolab.org/ecosystem/tablo|g" {} +
$ make format