I have a very simple code in GO
. Using the vs code, when I save the file I'm working on, the editor removes import "math"
Follow the code
package main
import "math"
func main() {
a := Sqrt(float64(60))
}
When you save the file, the vs code formatter for language GO
is removing import math
, but it is being used (in the Sqrt function).
Why is this happening? Is it an error in the code or do I need to set something up in the vs code?