This is an automated archive.
The original was posted on /r/golang by /u/devopsmerchant on 2023-08-08 12:54:44+00:00.
I have a requirement where I need to see particular version of import.
eg
lets say
import (
a "github.com/XYZ/a1"
# a "
github.com/XYZ/a2
"
)
Here I want to import either of the one based on some condition like version, if version is 1, then a1, if 2 then a2. Is it possible through this or some work around using some replacement in go.mod ?
You must log in or # to comment.