| 1 | <h2>Full example</h2> |
| 2 | <pre><code>// Source: https://go.dev/doc/modules/gomod-ref#example |
| 3 | |
| 4 | module example.com/mymodule |
| 5 | |
| 6 | go 1.14 |
| 7 | |
| 8 | require ( |
| 9 | example.com/othermodule v1.2.3 |
| 10 | example.com/thismodule v1.2.3 |
| 11 | example.com/thatmodule v1.2.3 |
| 12 | ) |
| 13 | |
| 14 | replace example.com/thatmodule => ../thatmodule |
| 15 | exclude example.com/thismodule v1.3.0</code></pre> |