Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit 38d28c3

Browse files
committed
fix lint issue
1 parent 21fcba0 commit 38d28c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intstring.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ StringInt DBにはint型に、jsonにはstring型として認識される特殊
1212
PrimaryKeyをランダムなstringからauto incrementなintに変換する時などに使います
1313
中身の値を使いたいときは、Value()メソッドを使用して下さい
1414
*/
15-
type StringInt struct {
15+
type StringInt struct { // nolint:recvcheck
1616
value int
1717
}
1818

@@ -44,7 +44,7 @@ func (si *StringInt) UnmarshalJSON(data []byte) error {
4444
}
4545

4646
// MarshalJSON json.Marshalerの実装
47-
func (si *StringInt) MarshalJSON() ([]byte, error) {
47+
func (si StringInt) MarshalJSON() ([]byte, error) {
4848
str := strconv.Itoa(si.value)
4949

5050
return json.Marshal(str)
@@ -63,6 +63,6 @@ func (si *StringInt) Scan(value any) error {
6363
}
6464

6565
// Value sql.Valuerの実装
66-
func (si *StringInt) Value() int {
66+
func (si StringInt) Value() int {
6767
return si.value
6868
}

0 commit comments

Comments
 (0)