modulepackage
0.0.0-20200131140943-8f08e3aea2c5
Repository: https://github.com/xyproto/webhandle.git
Documentation: pkg.go.dev
# README
DEPRECATED
webhandle

One way to serve webpages with onthefly and mux.
This is an experimental package and the overall design could be cleaner.
Online API Documentation
Features and limitations
- Webhandle can take a
*onthefly.Page
and publish both the HTML and CSS together, by listening to HTTP GET requests. gorilla/mux
is used for some of the functions.
General information
- Version: 0.1.1
- License: MIT
- Alexander F. Rødseth
# Packages
No description provided by the author
# Functions
Button for going back in history.
No description provided by the author
Takes a filename and returns a function that can handle the request.
Create a web.go compatible function that returns a string that is the CSS for this page.
Creates a page based on the contents of "error.log".
Create a web.go compatible function that returns a string that is the HTML for this page.
Create a web.go compatible function that returns a string that is the XML for this page.
Returns a form parameter, or an empty string.
Get the last value from an url.
Returns an url parameter, or an empty string.
Get a value from an url.
Split a string into two strings at the colon If there's no colon, return the string and an empty string.
HTML page that redirects to an url by using JavaScript.
Generic login form, not a complete html page.
HTML page that just displays a message.
Message page where the ok button goes one back in history by using JavaScript.
Message page where the ok button goes to a given url using JavaScript.
Handles pages that are not found.
Serve a static file.
Takes an url and a filename and offers that file at the given url.
Expose the HTML and CSS generated by a page building function to the two given urls.
Takes a filename and offers that file at the root url.
Generic registration form, not a complete html page.
Write the given string to the response writer.
No description provided by the author
Converts "true" or "false" to a bool.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author