Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.510.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeNames

type NativeNames map[schema.Node]string

NativeNames is a map of top-level declarations to their native Go names.

type Result

type Result struct {
	// Module is the extracted module schema.
	Module *schema.Module
	// NativeNames maps schema nodes to their native Go names.
	NativeNames NativeNames
	// VerbResourceParamOrder contains the order of resource parameters for each verb.
	VerbResourceParamOrder map[*schema.Verb][]common.VerbResourceParam
	// TopicPartitionMapperNames maps topics to the native name of the partition mapper.
	TopicPartitionMapperNames map[*schema.Topic]finalize.TopicMapperQualifiedNames
	// Errors is a list of errors encountered during schema extraction.
	Errors []builderrors.Error
}

Result contains the final schema extraction result.

func Extract

func Extract(projectRoot string, moduleDir string, sch *schema.Schema) (Result, error)

Extract statically parses Go FTL module source into a schema.Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL