gopeople

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 3 Imported by: 0

README

GoPeople

Build Status Go Report Card Docs License

Overview

GoPeople is a simple canonical set of structs for managing people information. It is designed to be used for simplified people management and provide a tool to convert to other, more complicated, formats such as SCIM and Schema.org.

Installation

$ go get github.com/grokify/gopeople/...

Contributing

Features, Issues, and Pull Requests are always welcome.

To contribute:

  1. Fork it ( http://github.com/grokify/gopeople/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Please report issues and feature requests on Github.

Documentation

Index

Constants

View Source
const (
	DepartmentEngineering = "Engineering"
	DepartmentProduct     = "Product Management"

	LevelCEO          = "CEO"
	LevelCXO          = "CXO"
	LevelSVP          = "SVP"
	LevelVP           = "VP"
	LevelAVP          = "AVP"
	LevelHead         = "Head"
	LevelSrDirector   = "Senior Director"
	LevelDirector     = "Director"
	LevelGroupManager = "Manager"
	LevelSrManager    = "Manager"
	LevelManager      = "Manager"
	LevelAssociate    = "Associate"
	LevelSpecialist   = "Specialist"

	PronounHeHim  = "He/Him"
	PronounSheHer = "She/Her"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Unlocode5 string
	City      string
	CityASCII string
	State     string
	Country   string
}

type Name

type Name struct {
	First   string
	Middle  string
	Last    string
	Pronoun string
}

func (*Name) TrimSpace

func (n *Name) TrimSpace()

type Organization

type Organization struct {
	Name        string
	IsCofounder bool
	Title       string
	Area        string
	Level       string
	Department  string
	Email       string
}

func (*Organization) Finalize

func (o *Organization) Finalize()

type People

type People []Person

func (People) OrganizationEmailsNice

func (p People) OrganizationEmailsNice() []string

type Person

type Person struct {
	Name         Name
	Organization Organization
	Email        string
	LinkedIn     string
	Location     Location
}

func (Person) Finalize

func (p Person) Finalize()

func (Person) OrganizationEmailNice

func (p Person) OrganizationEmailNice() string

Jump to

Keyboard shortcuts

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