139 Star 1.2K Fork 399

go-admin / go-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
smallbox.go 656 Bytes
一键复制 编辑 原始数据 按行查看 历史
package components
import (
"github.com/chenhg5/go-admin/template/types"
"html/template"
)
type SmallBoxAttribute struct {
Name string
Title string
Value string
Url string
Color string
}
func (compo *SmallBoxAttribute) SetTitle(value string) types.SmallBoxAttribute {
compo.Title = value
return compo
}
func (compo *SmallBoxAttribute) SetValue(value string) types.SmallBoxAttribute {
compo.Value = value
return compo
}
func (compo *SmallBoxAttribute) SetUrl(value string) types.SmallBoxAttribute {
compo.Url = value
return compo
}
func (compo *SmallBoxAttribute) GetContent() template.HTML {
return ComposeHtml(*compo, "smallbox")
}
Go
1
https://gitee.com/go-admin/go-admin.git
git@gitee.com:go-admin/go-admin.git
go-admin
go-admin
go-admin
v0.0.2

搜索帮助