util

package
v0.0.0-...-cbc4e0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2014 License: AGPL-3.0, AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package util contains a few commonly used utility functions.

Index

Constants

View Source
const MIN_KEYWORD_LEN = 3

Variables

View Source
var UserIdRegex *regexp.Regexp = regexp.MustCompile(`^\s*(\S.*\b)?\s*(\([^(]+\))?\s*(<[^>]+>)?$`)

Functions

func CleanUtf8

func CleanUtf8(s string) string

func Reverse

func Reverse(s string) string

func SplitUserId

func SplitUserId(id string) (keywords []string)

Split a user ID string into fulltext searchable keywords.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL