Discover Packages
github.com/Defacto2/df2
pkg
groups
internal
group
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Jun 12, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Variables
func Clean(name string, sim bool) (ok bool)
func CleanS(s string) string
func Count(name string) (int, error)
func Format(s string) string
func List(s string) (groups []string, total int, err error)
func SQLFilter(f Filter) (string, error)
func SQLSelect(f Filter, includeSoftDeletes bool) (string, error)
func SQLWhere(f Filter, softDel bool) (string, error)
func Slug(s string) string
func TrimDot(s string) string
func TrimThe(s string) string
func UseHr(prevLetter, group string) (string, bool)
type Filter
type Request
Clean a malformed group name and save the fix to the database.
CleanS fixes the malformed string.
Count returns the number of file entries associated with a named group.
Format returns a copy of s with custom formatting.
List all organisations or groups filtered by s.
SQLFilter returns a partial SQL WHERE statement to filter groups.
SQLSelect returns a complete SQL WHERE statement where the groups are filtered.
SQLWhere returns a partial SQL WHERE statement where groups are filtered.
Slug takes a string and makes it into a URL friendly slug.
TrimDot removes any trailing dots from s.
TrimThe removes 'the' prefix from s.
Use a HR element to mark out the groups alphabetically.
Filter group by role or function.
const (
None Filter = iota
BBS
FTP
Group
Magazine
)
Get the Filter type from s.
Request flags for group functions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.