Discover Packages
github.com/thedarksociety/go-pherit
examples
examples
struct
Page
package
Version:
v0.0.0-...-a1c84da
Opens a new window with list of versions in this module.
Published: Jan 14, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Page Struct defining the Title and Body of the wiki page.
LoadPage First, the function constructs the title from the param. Second, it reads
the contents into a new variable, and returns a pointer to the Page literal.
save Takes the post body and saves it to a file, naming it the title. The
signature is a method that takes a receiver p, a pointer to Page.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.