Documentation
¶
Overview ¶
NOTE: HOW TO ADD ADMIN CONSOLE COMMANDS
1. Add a case to the "switch argv[0]" statement in ExecuteAdminCommand 2. (Recommended) call a new function which will handle this command, and pass argv ([]string) to it. This function should return a string. 3. From the switch case, return a string.
Check if the lilypond library is linked correctly (binary is listed correctly in config.json) and give a warning if it is not (but do not stop the program immediately)
This function will be called when the function GetLilypond 404's. Run the lilypond executable to create the file.
Some necessary directories which are not included in the repository (because they begin as empty) will lead to panics while running. Alleviate this by creating these directories if they are not present.
This is called by the homepage function and is used by the home page template
This page serves as the sandbox (/lilysand) Both as the initial page, and for the output of the user-submitted lilypond input.
linkToRepo.go
this file contains the constant of the link to the repo.
If you fork wvlist, you should change this to link to your own repository, otherwise the link will not work.
handlerFunc for viewing a page. such as wvlist.net/view/bach
Source Files
¶
- adminconsole.go
- apiv1.go
- checkForLilypondAtStart.go
- config.go
- constText.go
- createLilypondIncipit.go
- createTempFileWithAllPerms.go
- editPage.go
- fixDirNotfound.go
- getAllLists.go
- getCurrentList.go
- getLilypond.go
- getMux.go
- getRootStaticFile.go
- homePage.go
- lilypondSandbox.go
- linkToRepo.go
- main.go
- params.go
- smtpStuff.go
- submitPage.go
- viewPage.go