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

viewdefinitions

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "ViewDefinition"

Variables

This section is empty.

Functions

This section is empty.

Types

type ViewDefinition

type ViewDefinition struct {
	metadata.MetadataInfo
	XMLName xml.Name `xml:"ViewDefinition"`
	Xmlns   string   `xml:"xmlns,attr"`

	ApiVersion *struct {
		Text string `xml:",chardata"`
	} `xml:"apiVersion,omitempty"`
	IsProtected *struct {
		Text string `xml:",chardata"`
	} `xml:"isProtected,omitempty"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	TargetType *struct {
		Text string `xml:",chardata"`
	} `xml:"targetType,omitempty"`
}

ViewDefinition represents the ViewDefinition metadata type used by Slack apps. The accompanying .view file (YAML, holding the block-kit component tree) sits next to the .view-meta.xml file in the viewdefinitions directory and is read separately by consumers.

func Open

func Open(path string) (*ViewDefinition, error)

func (*ViewDefinition) SetMetadata

func (v *ViewDefinition) SetMetadata(m metadata.MetadataInfo)

func (*ViewDefinition) Type

Jump to

Keyboard shortcuts

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