items id
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled

This commit is contained in:
2025-08-26 02:37:53 +08:00
parent f0bb92bdb9
commit 28415c186f
3 changed files with 2846 additions and 1418 deletions

View File

@ -13,7 +13,8 @@ type (
)
{{- range .}}
func ({{.Name | ToGoTypeName}}) ID() string { return {{.Name | printf "%q"}} }
func ({{.Name | ToGoTypeName}}) Name() string { return {{.Name | printf "%q"}} }
func ({{.Name | ToGoTypeName}}) ID() ID { return {{.Id | printf "%d"}} }
{{- end}}
{{- range .}}

View File

@ -7,7 +7,8 @@ import (
)
type Item interface {
ID() string
ID() ID
Name() string
}
type BlockItem interface {

File diff suppressed because it is too large Load Diff