Possibility: You executed the go application indirectly via godotenv
from the command line. And perhaps Command-C or Ctrl-C is only killing godotenv
.
Maybe you used: godotenv -f ./env/local.env go run cmd/blah/main.go
to start your application.
Do you recall how you started your app?