mk

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, wr io.Writer, element view.View) error

func Class

func Class(value string) view.Mod

Class - Устанавливает класс для ближайшего ребенка в контекст выполнения

func Delete

func Delete(key string) view.Mod

Delete - Производит удаление атрибута для ближайшего ребенка в дереве построения

func NewTag

func NewTag(inline bool, name string) func(content ...view.View) view.Use

func Set

func Set(key string, val string) view.Mod

Set - Устанавливает атрибут к ближайшему ребенку по дереву построения

func Style

func Style() view.View

Types

type BuildItem added in v0.8.0

type BuildItem interface {
	Build(ctx context.Context, wr io.Writer)
}

type StyleConfig added in v0.8.0

type StyleConfig struct {
	// contains filtered or unexported fields
}

func WithStyle

func WithStyle() *StyleConfig

func (*StyleConfig) Extract added in v0.8.0

func (s *StyleConfig) Extract() view.Mod

func (*StyleConfig) Rule added in v0.8.0

func (s *StyleConfig) Rule(rule string) *StyleConfig

func (*StyleConfig) Selector added in v0.8.0

func (s *StyleConfig) Selector(selector string) *StyleConfig

func (*StyleConfig) Value added in v0.8.0

func (s *StyleConfig) Value(key, val string) *StyleConfig

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func (*Tag) Body

func (t *Tag) Body(ctx context.Context) view.View

type Text

type Text string

func (Text) Body

func (t Text) Body(ctx context.Context) view.View

метод для удовлетворения интерфейсу View

Jump to

Keyboard shortcuts

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