contacts

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForm

func NewForm() *ui.Form

NewForm is an address book: a sortable, filterable contact list with a details panel, and a dialog to add and edit contacts. It shows a toolbar of flat ToolButtons with tooltips, a search TextBox with a hint, a ComboBox filter, a Table with row multiselection, header sorting and a context menu, a Splitter, Links, an Accordion of Expanders, a DialogContent with a DatePicker and inline validation, question message boxes, the clipboard, the save file dialog (CSV export), toasts and keyboard shortcuts.

Types

type Contact

type Contact struct {
	Name     string
	Company  string
	Group    string
	Phone    string
	Email    string
	Birthday time.Time
	Favorite bool
	Notes    string
}

Contact is one entry of the address book.

type DialogContact

type DialogContact struct {
	ui.DialogContent

	// OnOK gets the edited contact
	OnOK func(contact Contact)
	// contains filtered or unexported fields
}

DialogContact adds a new contact or edits an existing one. OK checks the fields and keeps the dialog open with a message while they are wrong.

func NewDialogContact

func NewDialogContact(title string, contact Contact) *DialogContact

Jump to

Keyboard shortcuts

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