Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/schema/bind/src/bindings/golang/wasm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const generateBinding: GenerateBindingFn = (
};
const output = result.output;
const abi = applyTransforms(options.abi);
const goImport = "github.com/testorg/testrepo";

// Generate object type folders
if (abi.objectTypes) {
Expand Down Expand Up @@ -148,7 +149,7 @@ export const generateBinding: GenerateBindingFn = (
name: "types",
data: renderTemplates(
templatePath("module-type"),
abi.moduleType,
{ goImport, ...abi.moduleType },
subTemplates
),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package {{#toSnakeCase}}{{namespace}}{{/toSnakeCase}}
{{#methods.length}}
import (
"github.com/consideritdone/polywrap-go/polywrap"
"some/library/to/methods"
)
{{/methods.length}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
{{#methods.length}}
import (
"github.com/consideritdone/polywrap-go/polywrap"
"some/library/to/methods"
methods "{{goImport}}"
)
{{/methods.length}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package test_import

import (
"github.com/consideritdone/polywrap-go/polywrap"
"some/library/to/methods"
)

func MethodImportedMethod(uri string, args *ArgsImportedMethod) (*TestImport_Object, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package types

import (
"github.com/consideritdone/polywrap-go/polywrap"
"some/library/to/methods"
methods "github.com/testorg/testrepo"
)

func ModuleMethodWrapped(argsBuf []byte, envSize uint32) []byte {
Expand Down