Documentation ¶
Overview ¶
Package people deals with people, person names, aliases and their roles.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cronjob ¶ added in v1.6.0
Cronjob is used for system automation to generate dynamic HTML pages.
func Fix ¶
func Fix() error
Fix any malformed group names found in the database.
Example ¶
package main import ( "log" "os" "github.com/Defacto2/df2/pkg/people" ) func main() { // suppress dynamic output for this example os.Stdout, _ = os.OpenFile(os.DevNull, os.O_APPEND|os.O_WRONLY, os.ModeAppend) defer os.Stdout.Close() if err := people.Fix(); err != nil { log.Print(err) } }
Output:
Types ¶
Click to show internal directories.
Click to hide internal directories.