express

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package express converts a postfix template expression into tapestry commands. Currently, it expects the user to define an activity pattern "print_name" to handle {.object} expressions.

Index

Constants

This section is empty.

Variables

View Source
var (
	B = literal.B
	F = literal.F
	I = literal.I
	T = literal.T
	W = core.W
)

Functions

func Convert

func Convert(xs template.Expression) (ret interface{}, err error)

Express converts a postfix expression into commands.

func WalkProperties

func WalkProperties(rtype r.Type, fn PropertyFunc) (done bool)

Types

type Converter

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

func (*Converter) Convert

func (c *Converter) Convert(xs template.Expression) (ret interface{}, err error)

type PropertyFunc

type PropertyFunc func(f *r.StructField, path []int) (done bool)

Jump to

Keyboard shortcuts

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