emc/catalog/link/dsl.go

19 lines
319 B
Go
Raw Normal View History

2022-05-21 13:32:18 +00:00
// Copyright (c) 2022 Mya Pitzeruse
// The MIT License (MIT)
package link
// New constructs a link from the given label and url.
func New(label, url string) Spec {
return Spec{
Label: label,
URL: url,
}
}
// Spec defines the elements needed to render a link.
type Spec struct {
Label string
URL string
}