mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 10:50:53 -07:00
Tidy up
This commit is contained in:
@@ -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++ {
|
||||
|
||||
@@ -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
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user