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