Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoUpdate ¶
AutoUpdate takes a pointer to the template.Template that should be updated, the path to the directory where the template definition files are stored, and a pointer to a read-write mutex. The mutex should be used when accessing the template.Template from your web app to avoid race conditions resulting from updates made by AutoUpdate. Make sure errors can be received from the (buffered) chan error returned by AutoUpdate. Otherwise, AutoUpdate will pause if the channel is full. Calls to AutoUpdate must be followed by a blocking operation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.