code

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package code contains types associated with generic code handling within the specification, such as imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	// Alias is an optional string containing an alias or specialized behavior
	// for the import, based on the programming language.
	//
	// For example in Go, this may be a different package name to prevent name
	// collisions within the same source code file or an underscore to import
	// the package solely for its initialization side-effects.
	Alias *string `json:"alias,omitempty"`

	// Path contains the source of the code for importing, typically a fully
	// qualified path or name, based on the programming language.
	//
	// For example in Go, this is a package path, such as
	// github.com/hashicorp/terraform-plugin-framework/types.
	Path string `json:"path"`
}

Import represents a required source code import to ensure that generated code compiles or runs successfully using code from sources external to the generated code file. The syntax and semantics of an import is programming language specific.

Jump to

Keyboard shortcuts

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