File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,11 @@ func main() {
33
33
}
34
34
35
35
if len (targets ) == 0 {
36
- fmt .Fprintf (os .Stderr , "no interfaces with //go:webrpc found , see https://github.com/golang-cz/gospeak\n " )
36
+ fmt .Fprintf (os .Stderr , "no interface has //go:webrpc directive , see https://github.com/golang-cz/gospeak\n " )
37
37
os .Exit (1 )
38
38
}
39
39
40
40
for _ , target := range targets {
41
- if target .Generator == "json" {
42
- jsonSchema , _ := target .Schema .ToJSON ()
43
- if err := os .WriteFile (target .OutFile , []byte (jsonSchema ), 0644 ); err != nil {
44
- fmt .Fprintf (os .Stderr , "failed to write to %q file: %v\n " , target .OutFile , err )
45
- os .Exit (1 )
46
- }
47
- fmt .Printf ("%20v => %v ✓\n " , target .InterfaceName , target .OutFile )
48
- continue
49
- }
50
-
51
41
config := & gen.Config {
52
42
RefreshCache : false ,
53
43
Format : false ,
You can’t perform that action at this time.
0 commit comments