6 lines
195 B
Bash
6 lines
195 B
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
go mod edit -module "${2}"
|
||
|
find . -type f -name '*.go' -exec sed -i -e "s,\"${1}/,\"${2}/,g" {} \;
|
||
|
find . -type f -name '*.go' -exec sed -i -e "s,\"${1}\",\"${2}\",g" {} \;
|