18 lines
202 B
Go
18 lines
202 B
Go
|
package handlers
|
||
|
|
||
|
type Iconier interface {
|
||
|
Img() string
|
||
|
}
|
||
|
|
||
|
type Icon struct {
|
||
|
img string
|
||
|
}
|
||
|
|
||
|
func (i *Icon) Img() string {
|
||
|
return i.img
|
||
|
}
|
||
|
|
||
|
func NewIcon(data string) *Icon {
|
||
|
return &Icon{img: data}
|
||
|
}
|