router := gin.New() var files []string filepath.Walk("./static", func(path string, info os.FileInfo, err error) error { if strings.HasSuffix(path, ".html") { files = append(files, path) } return nil }) router.LoadHTMLFiles(files...)
京公网安备 11010502049817号