Skip to content

Commit cca83db

Browse files
committed
fix: minor correction #4
1 parent 33cd472 commit cca83db

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

testfiles/a/name.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ import (
77
//go:generate repo_generator Name github.com/go-generalize/repo_generator/testfiles/a
88
//go:generate gofmt -w ./
99

10+
// Name 拡張インデックスあり
1011
type Name struct {
1112
ID int64 `datastore:"-" datastore_key:""` // supported type: string, int64, *datastore.Key
1213
Created time.Time `datastore:"created"`
13-
Desc string `datastore:"description"`
14+
Desc string `datastore:"description" filter:"l"` // supported word: m/matching(Default), l/like, p/prefix, TODO s/suffix
15+
Desc2 string `datastore:"description2" filter:"p"` // supported word: m/matching(Default), l/like, p/prefix, TODO s/suffix
1416
Done bool `datastore:"done"`
1517
Count int `datastore:"count"`
18+
Indexes []string `datastore:"indexes"`
1619
}

testfiles/a/task.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
//go:generate repo_generator Task github.com/go-generalize/repo_generator/testfiles/a
88
//go:generate gofmt -w ./
99

10+
// Task 拡張インデックスなし
1011
type Task struct {
11-
ID int64 `datastore:"-" datastore_key:""` // supported type: string, int64, *datastore.Key
12-
Desc string `datastore:"description" filter:"l"` // supported word: m/matching(Default), l/like, p/prefix, TODO s/suffix
12+
ID int64 `datastore:"-" datastore_key:""` // supported type: string, int64, *datastore.Key
13+
Desc string `datastore:"description"`
1314
Created time.Time `datastore:"created"`
1415
Done bool `datastore:"done"`
1516
Done2 bool `datastore:"done2"`
1617
Count int `datastore:"count"`
1718
Count64 int64 `datastore:"count64"`
18-
Indexes []string `datastore:"indexes"` // for XIAN
1919
}

0 commit comments

Comments
 (0)