mirror of
https://github.com/JuLi0n21/goTsClient.git
synced 2026-04-19 16:00:07 +00:00
remove log when generating client
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
_ "embed"
|
_ "embed"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
"slices"
|
"slices"
|
||||||
@@ -25,7 +24,6 @@ func GenClient(api any, outPutPath string) error {
|
|||||||
if err := os.WriteFile(outPutPath, []byte(ts), 0644); err != nil {
|
if err := os.WriteFile(outPutPath, []byte(ts), 0644); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Println("Generated TS client", outPutPath)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +44,6 @@ func GenerateTS(apiType reflect.Type, clientName string) (string, error) {
|
|||||||
if i == 0 {
|
if i == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Println(param)
|
|
||||||
collectStructs(param, structs)
|
collectStructs(param, structs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user