Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Working with local Packages

use replace in go.mod

You can even use relative paths, which is pretty nifty when you want to patch something or create a PR.

module example.com/mymodule

go 1.14

require (
    example.com/othermodule v1.2.3
    example.com/thismodule v1.2.3
    example.com/thatmodule v1.2.3

replace example.com/thatmodule => ../thatmodule
exclude example.com/thismodule v1.3.0

Resources and References