For file https://github.com/jaxleof/dew/blob/master/cmd/init.go, you can use https://pkg.go.dev/embed to embed template file, which is normally better for long-term maintainence.
For example
import _ "embed"
//go:embed ../template/cpp.cpp
var defaultCpp string
For file
https://github.com/jaxleof/dew/blob/master/cmd/init.go
, you can usehttps://pkg.go.dev/embed
to embed template file, which is normally better for long-term maintainence.For example
for
https://github.com/jaxleof/dew/blob/e5ba7b69fcd459597975356fb664f1ba673e08df/cmd/init.go#L17-L54