package
2.2.4+incompatible
Repository: https://github.com/qwiklabs/codelab-tools.git
Documentation: pkg.go.dev

# Functions

EmptyNodes returns true if all of nodes are empty.
ImageNodes extracts everything except NodeImage nodes, recursively.
ImportNodes extracts everything except NodeImport nodes, recursively.
IsHeader returns true if t is one of header types.
IsInline returns true if t is an inline node type.
IsItemsList returns true if t is one of ItemsListNode types.
NewButtonNode creates a new button with optional content nodes n.
No description provided by the author
NewCodeNode creates a new Node of type NodeCode.
NewGridNode creates a new grid with optional content.
NewHeaderNode creates a new HeaderNode with optional content nodes n.
NewIframeNode creates a new embedded iframe.
NewImageNode creates a new ImageNode with the give src.
NewImportNode creates a new Node of type NodeImport, with initialized ImportNode.Content.
NewInfoboxNode creates a new infobox node with specified kind and optional content.
NewItemsListNode creates a new ItemsListNode of type NodeItemsList, which defaults to an unordered list.
NewListNode creates a new Node of type NodeList.
NewSurveyNode creates a new survey node with optional questions.
NewTextNode creates a new Node of type NodeText.
NewURLNode creates a new Node of type NodeURL with optinal content n.
NewYouTubeNode creates a new YouTube video node.

# Constants

InfoboxNode variations.
InfoboxNode variations.
Button.
Source code or console (terminal) output.
Table.
A header text node.
Special kind of header, checklist.
Special kind of header, FAQ.
Embedded iframe.
Image.
A node which holds content imported from another resource.
An aside box for notes or warnings.
Codelab node kinds.
Special kind of NodeItemsList, checklist.
Special kind of NodeItemsList, FAQ.
Set of NodeList items.
A node which contains a list of other nodes.
Sets of grouped questions.
Simple node with a string as the value.
Represents elements such as <a href="...">.
YouTube video.

# Variables

iframe whitelist - set of domains allow to embed iframes in a codelab.

# Structs

ButtonNode represents a button, e.g.
Codelab is a top-level structure containing metadata and codelab steps.
CodeNode is either a source code snippet or a terminal output.
Context is an export context.
ContextMeta is a composition of export context and meta data.
GridCell is a cell of GridNode.
GridNode is a 2d matrix.
HeaderNode is any regular header, a checklist header, or an FAQ header.
IframeNode is an embeddes iframe.
ImageNode represents a single image.
ImportNode indicates a remote resource available at ImportNode.URL.
InfoboxNode is any regular header, a checklist header, or an FAQ header.
ItemsListNode containts sets of ListNode.
ListNode contains other nodes.
Meta contains a single codelab metadata.
Step is a single codelab step, containing metadata and actual content.
SurveyGroup contains group name/question and possible answers.
SurveyNode contains groups of questions.
TextNode is a simple node containing text as a string value.
URLNode represents elements such as <a href="...">.
YouTubeNode is a YouTube video.

# Interfaces

Node is an interface common to all node types.

# Type aliases

ContextTime is codelab metadata timestamp.
InfoboxKind defines kind type for InfoboxNode.
LegacyStatus supports legacy status values which are strings as opposed to an array, e.g.
NodeType is type for parsed codelab nodes tree.