Skip to content

Commit

Permalink
use a key type
Browse files Browse the repository at this point in the history
use "type K string" instead of a struct
  • Loading branch information
muir committed Dec 30, 2023
1 parent a5ad1de commit ec0cf4a
Show file tree
Hide file tree
Showing 55 changed files with 981 additions and 853 deletions.
32 changes: 16 additions & 16 deletions basegroup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions basegroup.zzzgo
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// TEMPLATE-FILE
// TEMPLATE-FILE
// TEMPLATE-FILE

package xop

import (
Expand Down Expand Up @@ -213,28 +217,28 @@ func (l lines) ZZZ(k string, v zzz) {
}

// MACRO BaseDataWithoutType
func (p prefillings) ZZZ(k string, v zzz) {
func (p prefillings) ZZZ(k xopat.K, v zzz) {
for _, prefilling := range p {
prefilling.ZZZ(k, v)
}
}

// MACRO BaseDataWithType
func (p prefillings) ZZZ(k string, v zzz, dt xopbase.DataType) {
func (p prefillings) ZZZ(k xopat.K, v zzz, dt xopbase.DataType) {
for _, prefilling := range p {
prefilling.ZZZ(k, v, dt)
}
}

// MACRO BaseDataWithoutType
func (l lines) ZZZ(k string, v zzz) {
func (l lines) ZZZ(k xopat.K, v zzz) {
for _, line := range l {
line.ZZZ(k, v)
}
}

// MACRO BaseDataWithType
func (l lines) ZZZ(k string, v zzz, dt xopbase.DataType) {
func (l lines) ZZZ(k xopat.K, v zzz, dt xopbase.DataType) {
for _, line := range l {
line.ZZZ(k, v, dt)
}
Expand Down
44 changes: 23 additions & 21 deletions line.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec0cf4a

Please sign in to comment.