77 "sort"
88 "strings"
99
10- "github.com/devlights/try-golang/mappings "
10+ "github.com/devlights/try-golang/mapping "
1111)
1212
1313type (
@@ -18,16 +18,16 @@ type (
1818
1919 // RunLoopArgs -- RunLoopCommand の引数データを表します.
2020 RunLoopArgs struct {
21- OneTime bool // 一回実行で完了するかどうか
22- Mapping mappings .ExampleMapping // マッピング情報
21+ OneTime bool // 一回実行で完了するかどうか
22+ Mapping mapping .ExampleMapping // マッピング情報
2323 }
2424)
2525
2626// NewRunLoopArgs -- 新しい RunLoopArgs を生成して返します.
27- func NewRunLoopArgs (oneTime bool , mapping mappings .ExampleMapping ) * RunLoopArgs {
27+ func NewRunLoopArgs (oneTime bool , m mapping .ExampleMapping ) * RunLoopArgs {
2828 a := new (RunLoopArgs )
2929 a .OneTime = oneTime
30- a .Mapping = mapping
30+ a .Mapping = m
3131 return a
3232}
3333
@@ -116,7 +116,7 @@ func (c *RunLoopCommand) Run() error {
116116 return nil
117117}
118118
119- func (c * RunLoopCommand ) exec (target string , mapping mappings .ExampleMapping ) error {
119+ func (c * RunLoopCommand ) exec (target string , mapping mapping .ExampleMapping ) error {
120120 execArgs := NewExecArgs (target , mapping )
121121 execCmd := NewExecCommand (execArgs )
122122
@@ -127,7 +127,7 @@ func (c *RunLoopCommand) exec(target string, mapping mappings.ExampleMapping) er
127127 return nil
128128}
129129
130- func (c * RunLoopCommand ) makeCandidates (userInput string , mapping mappings .ExampleMapping ) []string {
130+ func (c * RunLoopCommand ) makeCandidates (userInput string , mapping mapping .ExampleMapping ) []string {
131131 candidates := make ([]string , 0 , len (mapping ))
132132 for k := range mapping {
133133 key := string (k )
0 commit comments