19 lines
234 B
Go
19 lines
234 B
Go
package format
|
|
|
|
type Prop struct {
|
|
name string
|
|
label string
|
|
}
|
|
|
|
func (p *Prop) Name() string {
|
|
return p.name
|
|
}
|
|
|
|
func (p *Prop) Label() string {
|
|
return p.label
|
|
}
|
|
|
|
func NewProp(name, label string) Prop {
|
|
return Prop{name, label}
|
|
}
|