{"modulePath":"github.com/we-dcode/opentofu","version":"v0.0.0-20250105000325-19243c9e4ceb","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jsonfunction\n\n## Constants\n\n```go\nconst FormatVersion = \"1.0\"\n```\nFormatVersion represents the version of the json format and will be incremented for any change to this format that requires changes to a consuming parser.\n\n## Functions\n\n```go\nfunc Marshal(f map[string]function.Function) ([]byte, tfdiags.Diagnostics)\n```\n\n## Types\n\n```go\ntype FunctionSignature struct {\n\t// Description is an optional human-readable description\n\t// of the function\n\tDescription string `json:\"description,omitempty\"`\n\n\t// ReturnTypes is the ctyjson representation of the function's\n\t// return types based on supplying all parameters using\n\t// dynamic types. Functions can have dynamic return types.\n\tReturnType cty.Type `json:\"return_type\"`\n\n\t// Parameters describes the function's fixed positional parameters.\n\tParameters []*parameter `json:\"parameters,omitempty\"`\n\n\t// VariadicParameter describes the function's variadic\n\t// parameters, if any are supported.\n\tVariadicParameter *parameter `json:\"variadic_parameter,omitempty\"`\n}\n```\nFunctionSignature represents a function signature.\n\n","path":"github.com/we-dcode/opentofu/pkg/command/jsonfunction","name":"jsonfunction","synopsis":"","isRedistributable":true}
