This commit is contained in:
Lea Anthony
2020-10-30 15:55:15 +11:00
parent fc4d17b967
commit a2a50a1c78
2 changed files with 2 additions and 19 deletions

View File

@@ -68,6 +68,8 @@ func getMethods(value interface{}) ([]*BoundMethod, error) {
boundMethod.Inputs = inputs
// Iterate outputs
// TODO: Determine what to do about limiting return types
// especially around errors.
outputParamCount := methodType.NumOut()
var outputs []*Parameter
for outputIndex := 0; outputIndex < outputParamCount; outputIndex++ {

View File

@@ -75,22 +75,3 @@ func (m *Method) OutputsAsTSText() string {
}
return strings.Join(result, ", ")
}
// func generateStructFile() {
// // Create string buffer
// var result bytes.Buffer
// // Add some standard comments
// _, err := result.WriteString(structJSHeader + )
// if err != nil {
// return errors.Wrap(err, "Error writing string")
// }
// // Loop over the methods
// for _, method := range methods {
// generatedCode := generateMethodWrapper(method) {
// }
// }
// return nil
// }