File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed
Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 88type (
99 // Command は、サンプルの動作確認のためのインターフェースです.
1010 Command interface {
11- Version () string
1211 Run () error
1312 }
1413
@@ -51,8 +50,3 @@ func (c *ListFileCommand) Run() error {
5150
5251 return nil
5352}
54-
55- // Version は、本コマンドのバージョンを返します.
56- func (c * ListFileCommand ) Version () string {
57- return "v0.0.1"
58- }
Original file line number Diff line number Diff line change @@ -128,10 +128,3 @@ func printMemoryStats(prefix string) {
128128func toKb (bytes uint64 ) uint64 {
129129 return bytes / 1024
130130}
131-
132- // noinspection GoUnusedFunction
133- //
134- //lint:ignore U1000 使われていないのは承知済み
135- func toMb (bytes uint64 ) uint64 {
136- return toKb (bytes ) / 1024
137- }
Original file line number Diff line number Diff line change @@ -26,5 +26,6 @@ func (r *register) Regist(m mapping.ExampleMapping) {
2626 m ["short_assignment_statement" ] = shortassignment .Basic
2727 m ["shadowing_variable" ] = shadowing .Basic
2828 m ["using_ref_to_loop_iterator_variable" ] = loopiterator .CommonMistakePattern
29+ m ["passing_loop_variable_to_goroutine_by_pointer" ] = loopiterator .PassingLoopVariableToGoroutineByPointer
2930 m ["function_returns_address_of_local_variable" ] = function_returns_address_of_local_variable .FunctionReturnsAddressOfLocalVariable
3031}
You can’t perform that action at this time.
0 commit comments