Documentation ¶
Overview ¶
Package lib contains all project logic.
Index ¶
Constants ¶
View Source
const ( Markdown = ".md" Gocode = ".go" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App models current application
type Config ¶
Config models an entity config reader
func (*Config) BooleanDefault ¶
BooleanDefault function gets config property from default section or use default boolean value
type Server ¶
Server represents web server logic and attributes
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(rw http.ResponseWriter, r *http.Request)
ServerHTTP is the handler function to publish into web server
func (*Server) Show ¶
func (s *Server) Show(rw http.ResponseWriter, r *http.Request)
Show is the function that publish all files in the directory.
func (*Server) ShowMarkdown ¶
func (s *Server) ShowMarkdown(rw http.ResponseWriter, data []byte, file File)
ShowMarkdown contains generation logic from markdown to html.
Click to show internal directories.
Click to hide internal directories.