package errw import ( "github.com/GeertJohan/go.rice/embedded" "time" ) func init() { // define files file2 := &embedded.EmbeddedFile{ Filename: `error.html`, FileModTime: time.Unix(1489238440, 0), Content: string("\n\n\n \n \n {{.Config.Site.Title}} Admin Login\n \n\n\n
\n

{{.Error.Title}}


\n

{{.Error.Code}}


\n

{{.Error.Description}}

\n
\n\n"), } // define dirs dir1 := &embedded.EmbeddedDir{ Filename: ``, DirModTime: time.Unix(1489240168, 0), ChildFiles: []*embedded.EmbeddedFile{ file2, // error.html }, } // link ChildDirs dir1.ChildDirs = []*embedded.EmbeddedDir{} // register embeddedBox embedded.RegisterEmbeddedBox(`errw_res/`, &embedded.EmbeddedBox{ Name: `errw_res/`, Time: time.Unix(1489240168, 0), Dirs: map[string]*embedded.EmbeddedDir{ "": dir1, }, Files: map[string]*embedded.EmbeddedFile{ "error.html": file2, }, }) }