I have an import:
import {
"github.com/aws/aws-sdk-go/service/route53"
}
Which I then use to work with host zones in AWS Route 53. I see that the code I created works properly now with the current setup.
To simplify development process, I want to create a mock of the library methods I use while developing.
I have a key in config, like this env="development" or env="production".
My plan is to add my own object that is route53 with the needed methods and import it if the env is development.
How do I do it better? Does golang support conditional importing, like this:
if (env=="development") {
import "./route53-mock"
} else {
"github.com/aws/aws-sdk-go/service/route53"
}