titles

package
v0.20.12 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RegularExpressionsRaw = `` /* 2014-byte string literal not displayed */

patterns must be lower case

Variables

View Source
var DepartmentRxs = map[Department]*regexp.Regexp{}

Functions

This section is empty.

Types

type Department

type Department int
const (
	BusinessDevelopment Department = 1 + iota
	CorporateMarketing
	DeveloperRelations
	Finance
	HumanResources
	IT
	Legal
	Operations
	ProductManagement
	ProductMarketing
	Sales
	SalesEngineering
	SalesOps
	SDK
	SoftwareEngineering
	Support
	UX
)

func ParseDepartment

func ParseDepartment(s string) (Department, error)

func (Department) String

func (d Department) String() string

type Parser

type Parser struct {
	DepartmentPatterns    map[string][]string `json:"departmentPatterns,omitempty"`
	DepartmentExpressions map[string][]*regexp.Regexp
}

func NewParser

func NewParser() Parser

func (*Parser) ParseTitle

func (p *Parser) ParseTitle(s string) (Department, error)

Jump to

Keyboard shortcuts

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