Skip to content

Instantly share code, notes, and snippets.

@gokusenz
Last active February 16, 2020 11:35
Show Gist options
  • Save gokusenz/5ac76d7952286f44322bf4725fe2d650 to your computer and use it in GitHub Desktop.
Save gokusenz/5ac76d7952286f44322bf4725fe2d650 to your computer and use it in GitHub Desktop.
Example for go modules with replace
module github.com/gokusenz/go-healthcheck
go 1.12
replace (
github.com/gokusenz/go-healthcheck/cmd => ./cmd
github.com/gokusenz/go-healthcheck/healthcheck => ./healthcheck
)
require (
github.com/mitchellh/go-homedir v1.1.0
github.com/pelletier/go-toml v1.6.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v0.0.5
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.6.2
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect
golang.org/x/text v0.3.2 // indirect
gopkg.in/ini.v1 v1.52.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment