Documentation ¶ Index ¶ Constants type Options type Server func NewServer(opts Options) *Server func (s *Server) GetUrl() string func (s *Server) Handle(url string, ...) func (s *Server) PrintFile(url, fileName string, variables map[string]string) func (s *Server) Start() func (s *Server) Stop() Constants ¶ View Source const DefaultPort = 2345 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Options ¶ added in v0.0.3 type Options struct { Port int } type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(opts Options) *Server func (*Server) GetUrl ¶ added in v0.0.3 func (s *Server) GetUrl() string func (*Server) Handle ¶ added in v0.0.5 func (s *Server) Handle(url string, handler func(inputs map[string]string) (filename string, placeholders map[string]string)) func (*Server) PrintFile ¶ func (s *Server) PrintFile(url, fileName string, variables map[string]string) func (*Server) Start ¶ func (s *Server) Start() func (*Server) Stop ¶ func (s *Server) Stop() Source Files ¶ View all Source files opts.go server.go Click to show internal directories. Click to hide internal directories.