css

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Example (Read)
package main

import ()

func main() {
	// todo
}

Index

Examples

Constants

View Source
const (
	CurlyBlock = iota
	RoundBlock
	SquareBlock
)

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, rules []*Rule)

Types

type AtRule

type AtRule struct {
	Identifier string
	Components []ComponentValue
	CurlyBlock *Block
}

type Block

type Block struct {
	Type       BlockType
	Components []ComponentValue // contains Components
}

type BlockType

type BlockType int

func (BlockType) Postfix

func (bt BlockType) Postfix() string

func (BlockType) Prefix

func (bt BlockType) Prefix() string

type ComponentValue

type ComponentValue interface {
}

Component represents CSS "Component value", which is one of PreservedToken, CurlyBlock, RoundBlock, SquareBlock

type Function

type Function struct {
	Name       string
	Components []ComponentValue
}

type Rule

type Rule struct {
	AtKeywordToken *gc.Token
	Prelude        []ComponentValue
	Block          *Block
}

func Read

func Read(buf string) ([]*Rule, error)

Jump to

Keyboard shortcuts

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