programming?
kinda stupid question, but I never had this issue...
I have this file structure
./
├─ config.yml
├─ deploy.sh
├─ dockerfile
├─ go.mod
├─ go.sum
├─ handlers/
│ ├─ aethra.go
│ ├─ common.go
│ └─ index.go
├─ LICENSE
├─ main.go
├─ makefile
├─ README.md
├─ routes.go
├─ templates/
│ ├─ aethra/
│ │ ├─ 7500.tmpl
│ │ └─ 8500.tmpl
│ └─ cisco.tmpl
├─ templates.go
├─ type_webserver.go
├─ version.go
├─ version.html
└─ version.sh
I'm editing aethra.go in handlers folder, however I'm not able to embed ../templates/aethra/7500.tmpl, and neither to access the variable with the embedded template if defined in templates.go
Put your main.go in /cmd/yourappname/
Обсуждают сегодня