command
Version:
v1.0.3-0...-4db7b2a
Opens a new window with list of versions in this module.
Published: Nov 21, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
ListenAndServe on port 8080 of localhost
For the default route "/" Have a func called "foo" which writes to the response "foo ran"
For the route "/dog/" Have a func called "dog" which parses a template called "dog.gohtml" and writes to the response "
his is from dog
" and also shows a picture of a dog when the template is executed.
Use "http.ServeFile" to serve the file "dog.jpeg"
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.