Installation#
AALI Shared Types is a Go module that provides type definitions for AALI services.
Import as Go Module#
To use AALI Shared Types in your Go project, import it as a module dependency:
go get github.com/ansys/aali-sharedtypes
Using in Your Code#
Import the packages you need:
import (
"github.com/ansys/aali-sharedtypes/pkg/sharedtypes"
"github.com/ansys/aali-sharedtypes/pkg/typeconverters"
)
Verify Installation#
Create a simple test file to verify the import works:
package main
import (
"fmt"
"github.com/ansys/aali-sharedtypes/pkg/sharedtypes"
)
func main() {
// Create a function definition
funcDef := sharedtypes.FunctionDefinition{
Name: "test-function",
Type: "go",
}
fmt.Printf("Created function: %s\n", funcDef.Name)
}
Run the test:
go run main.go
Next Steps#
Now that you have AALI Shared Types installed, learn how to add custom types for your FlowKit functions.