File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ public function getTypeName(array $parameter): string
119
119
case self ::TYPE_NUMBER :
120
120
return 'float64 ' ;
121
121
case self ::TYPE_FILE :
122
+ return 'InputFile ' ;
122
123
case self ::TYPE_STRING :
123
124
return 'string ' ;
124
125
case self ::TYPE_BOOLEAN :
@@ -215,7 +216,7 @@ public function getParamExample(array $param): string
215
216
$ output .= '[] ' ;
216
217
break ;
217
218
case self ::TYPE_FILE :
218
- $ output .= " file " ;
219
+ $ output .= ' NewInputFile("/path/to/ file.png", "file.png") ' ;
219
220
break ;
220
221
}
221
222
} else {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ type InputFile struct {
6
6
Data []byte
7
7
}
8
8
9
- func (inp *InputFile) FromPath (path string, name string) {
9
+ func (inp *InputFile) NewInputFile (path string, name string) {
10
10
inp.Path = path
11
11
inp.Name = name
12
12
}
You can’t perform that action at this time.
0 commit comments