From 738129e921721727ca19f9782c33cf7183a011cf Mon Sep 17 00:00:00 2001 From: didi Date: Thu, 27 Jun 2019 17:45:41 +0800 Subject: [PATCH] delete files --- .gitignore | 3 --- repo.go | 30 ------------------------------ 2 files changed, 33 deletions(-) delete mode 100644 .gitignore delete mode 100644 repo.go diff --git a/.gitignore b/.gitignore deleted file mode 100644 index eb34f62..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -tmpl/index.html -awesome-go -.idea diff --git a/repo.go b/repo.go deleted file mode 100644 index 9627e1b..0000000 --- a/repo.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "os" - "io/ioutil" - "text/template" - gfm "github.com/shurcooL/github_flavored_markdown" -) - -type content struct { - Body string -} - -func main() { - generateHTML() -} - -func generateHTML() (err error) { - // options - readmePath := "./README.md" - tplPath := "tmpl/tmpl.html" - idxPath := "tmpl/index.html" - input, _ := ioutil.ReadFile(readmePath) - body := string(gfm.Markdown(input)) - c := &content{Body: body} - t := template.Must(template.ParseFiles(tplPath)) - f, err := os.Create(idxPath) - t.Execute(f, c) - return -} \ No newline at end of file