hometype

package
v0.0.0-...-0d5229f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hometype represents the home type in the system.

Index

Constants

This section is empty.

Variables

View Source
var (
	Single = newType("SINGLE FAMILY")
	Condo  = newType("CONDO")
)

The set of types that can be used.

Functions

This section is empty.

Types

type HomeType

type HomeType struct {
	// contains filtered or unexported fields
}

HomeType represents a type in the system.

func MustParse

func MustParse(value string) HomeType

MustParse parses the string value and returns a home type if one exists. If an error occurs the function panics.

func Parse

func Parse(value string) (HomeType, error)

Parse parses the string value and returns a home type if one exists.

func (HomeType) Equal

func (ht HomeType) Equal(ht2 HomeType) bool

Equal provides support for the go-cmp package and testing.

func (HomeType) String

func (ht HomeType) String() string

String returns the name of the type.

Jump to

Keyboard shortcuts

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