t, err := template.ParseFiles("C:\path\to\www\index.html")
t, err := template.ParseFiles("/path/to/www/index.html")
import (
"fmt"
"log"
"os"
"path/filepath"
)
func main() {
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
if err != nil {
log.Fatal(err)
}
fmt.Println(dir)
}