explain

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSXProperty

func JSXProperty(rd io.Reader)

explain property

Types

type JSXNode

type JSXNode struct {
	Original   []byte
	Len        int
	StartIndex int
	EndIndex   int

	NodeName   string
	EndNode    bool
	SingleNode bool
	// contains filtered or unexported fields
}

func JSX

func JSX(content []byte) []*JSXNode

explain XML or HTML code

func JSXString

func JSXString(content string) []*JSXNode

func (*JSXNode) Compile

func (s *JSXNode) Compile() string

func (*JSXNode) String

func (s *JSXNode) String() string

type JSXNodeProperty

type JSXNodeProperty struct {
	Len        int
	StartIndex int
	EndIndex   int

	Name  string
	Value string
}

func (*JSXNodeProperty) String

func (s *JSXNodeProperty) String() string

Jump to

Keyboard shortcuts

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