Template

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.text.template
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor

 

constructor

 

Template()

 

init()

 

Sub New()

constructor (Template)

 

constructor(value: Template)

 

Template(Template value)

 

init(_ value: Template)

 

Sub New(value As Template)

Parameters:

  • value:

AddParseTree

 

// .NET, .NET Standard 2.0
method AddParseTree(name: string; tree: Memory<Tree>): tuple of (Memory<Template>, error)
// Island
method AddParseTree(name: string; tree: Memory<Tree>): tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
(Memory<Template>, error) AddParseTree(string name, Memory<Tree> tree)
// Island
(Memory<Template>, error) AddParseTree(string name, Memory<Tree> tree)

 

// .NET, .NET Standard 2.0
func AddParseTree(_ name: string, _ tree: Memory<Tree>) -> (Memory<Template>, error)
// Island
func AddParseTree(_ name: string, _ tree: Memory<Tree>) -> (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
func AddParseTree(name string, tree Memory<Tree>) tuple of (Memory<Template>, error)
// Island
func AddParseTree(name string, tree Memory<Tree>) tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
Function AddParseTree(name As string, tree As Memory<Tree>) As Tuple (Of Memory<Template>, error)
// Island
Function AddParseTree(name As string, tree As Memory<Tree>) As Tuple (Of Memory<Template>, error)

Parameters:

  • name:
  • tree:

Clone

 

// .NET, .NET Standard 2.0
method Clone: tuple of (Memory<Template>, error)
// Island
method Clone: tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
(Memory<Template>, error) Clone()
// Island
(Memory<Template>, error) Clone()

 

// .NET, .NET Standard 2.0
func Clone() -> (Memory<Template>, error)
// Island
func Clone() -> (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
func Clone() tuple of (Memory<Template>, error)
// Island
func Clone() tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
Function Clone() As Tuple (Of Memory<Template>, error)
// Island
Function Clone() As Tuple (Of Memory<Template>, error)

Copy

 

// .NET, .NET Standard 2.0
method Copy: Memory<Tree>
// Island
method Copy: Memory<Tree>

 

// .NET, .NET Standard 2.0
Memory<Tree> Copy()
// Island
Memory<Tree> Copy()

 

// .NET, .NET Standard 2.0
func Copy() -> Memory<Tree>
// Island
func Copy() -> Memory<Tree>

 

// .NET, .NET Standard 2.0
func Copy() Memory<Tree>
// Island
func Copy() Memory<Tree>

 

// .NET, .NET Standard 2.0
Function Copy() As Memory<Tree>
// Island
Function Copy() As Memory<Tree>

DefinedTemplates

 

method DefinedTemplates: string

 

string DefinedTemplates()

 

func DefinedTemplates() -> string

 

func DefinedTemplates() string

 

Function DefinedTemplates() As string

Delims

 

// .NET, .NET Standard 2.0
method Delims(left: string; right: string): Memory<Template>
// Island
method Delims(left: string; right: string): Memory<Template>

 

// .NET, .NET Standard 2.0
Memory<Template> Delims(string left, string right)
// Island
Memory<Template> Delims(string left, string right)

 

// .NET, .NET Standard 2.0
func Delims(_ left: string, _ right: string) -> Memory<Template>
// Island
func Delims(_ left: string, _ right: string) -> Memory<Template>

 

// .NET, .NET Standard 2.0
func Delims(left string, right string) Memory<Template>
// Island
func Delims(left string, right string) Memory<Template>

 

// .NET, .NET Standard 2.0
Function Delims(left As string, right As string) As Memory<Template>
// Island
Function Delims(left As string, right As string) As Memory<Template>

Parameters:

  • left:
  • right:

ErrorContext

 

method ErrorContext(n: Node): tuple of (location: string, context: string)

 

(string location, string context) ErrorContext(Node n)

 

func ErrorContext(_ n: Node) -> (string, string)

 

func ErrorContext(n Node) tuple of (|name=location| string, |name=context| string)

 

Function ErrorContext(n As Node) As Tuple (Of string, string)

Parameters:

  • n:

Execute

 

method Execute(wr: Writer; data: Object): error

 

error Execute(Writer wr, Object data)

 

func Execute(_ wr: Writer, _ data: Object) -> error

 

func Execute(wr Writer, data interface{}) error

 

Function Execute(wr As Writer, data As Object) As error

Parameters:

  • wr:
  • data:

ExecuteTemplate

 

method ExecuteTemplate(wr: Writer; name: string; data: Object): error

 

error ExecuteTemplate(Writer wr, string name, Object data)

 

func ExecuteTemplate(_ wr: Writer, _ name: string, _ data: Object) -> error

 

func ExecuteTemplate(wr Writer, name string, data interface{}) error

 

Function ExecuteTemplate(wr As Writer, name As string, data As Object) As error

Parameters:

  • wr:
  • name:
  • data:

Funcs

 

// .NET, .NET Standard 2.0
method Funcs(funcMap: FuncMap): Memory<Template>
// Island
method Funcs(funcMap: FuncMap): Memory<Template>

 

// .NET, .NET Standard 2.0
Memory<Template> Funcs(FuncMap funcMap)
// Island
Memory<Template> Funcs(FuncMap funcMap)

 

// .NET, .NET Standard 2.0
func Funcs(_ funcMap: FuncMap) -> Memory<Template>
// Island
func Funcs(_ funcMap: FuncMap) -> Memory<Template>

 

// .NET, .NET Standard 2.0
func Funcs(funcMap FuncMap) Memory<Template>
// Island
func Funcs(funcMap FuncMap) Memory<Template>

 

// .NET, .NET Standard 2.0
Function Funcs(funcMap As FuncMap) As Memory<Template>
// Island
Function Funcs(funcMap As FuncMap) As Memory<Template>

Parameters:

  • funcMap:

Lookup

 

// .NET, .NET Standard 2.0
method Lookup(name: string): Memory<Template>
// Island
method Lookup(name: string): Memory<Template>

 

// .NET, .NET Standard 2.0
Memory<Template> Lookup(string name)
// Island
Memory<Template> Lookup(string name)

 

// .NET, .NET Standard 2.0
func Lookup(_ name: string) -> Memory<Template>
// Island
func Lookup(_ name: string) -> Memory<Template>

 

// .NET, .NET Standard 2.0
func Lookup(name string) Memory<Template>
// Island
func Lookup(name string) Memory<Template>

 

// .NET, .NET Standard 2.0
Function Lookup(name As string) As Memory<Template>
// Island
Function Lookup(name As string) As Memory<Template>

Parameters:

  • name:

Name

 

method Name: string

 

string Name()

 

func Name() -> string

 

func Name() string

 

Function Name() As string

New

 

// .NET, .NET Standard 2.0
method New(name: string): Memory<Template>
// Island
method New(name: string): Memory<Template>

 

// .NET, .NET Standard 2.0
Memory<Template> New(string name)
// Island
Memory<Template> New(string name)

 

// .NET, .NET Standard 2.0
func New(_ name: string) -> Memory<Template>
// Island
func New(_ name: string) -> Memory<Template>

 

// .NET, .NET Standard 2.0
func New(name string) Memory<Template>
// Island
func New(name string) Memory<Template>

 

// .NET, .NET Standard 2.0
Function New(name As string) As Memory<Template>
// Island
Function New(name As string) As Memory<Template>

Parameters:

  • name:

Option

 

// .NET, .NET Standard 2.0
method Option(params opt: array of string): Memory<Template>
// Island
method Option(params opt: array of string): Memory<Template>

 

// .NET, .NET Standard 2.0
Memory<Template> Option(params string[] opt)
// Island
Memory<Template> Option(params string[] opt)

 

// .NET, .NET Standard 2.0
func Option(_ opt: string...) -> Memory<Template>
// Island
func Option(_ opt: string...) -> Memory<Template>

 

// .NET, .NET Standard 2.0
func Option(opt []string) Memory<Template>
// Island
func Option(opt []string) Memory<Template>

 

// .NET, .NET Standard 2.0
Function Option(ParamArray opt As string()) As Memory<Template>
// Island
Function Option(ParamArray opt As string()) As Memory<Template>

Parameters:

  • opt:

Parse

 

// .NET, .NET Standard 2.0
method Parse(text: string): tuple of (Memory<Template>, error)
// Island
method Parse(text: string): tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
(Memory<Template>, error) Parse(string text)
// Island
(Memory<Template>, error) Parse(string text)

 

// .NET, .NET Standard 2.0
func Parse(_ text: string) -> (Memory<Template>, error)
// Island
func Parse(_ text: string) -> (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
func Parse(text string) tuple of (Memory<Template>, error)
// Island
func Parse(text string) tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
Function Parse(text As string) As Tuple (Of Memory<Template>, error)
// Island
Function Parse(text As string) As Tuple (Of Memory<Template>, error)

Parameters:

  • text:

ParseFiles

 

// .NET, .NET Standard 2.0
method ParseFiles(params filenames: array of string): tuple of (Memory<Template>, error)
// Island
method ParseFiles(params filenames: array of string): tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
(Memory<Template>, error) ParseFiles(params string[] filenames)
// Island
(Memory<Template>, error) ParseFiles(params string[] filenames)

 

// .NET, .NET Standard 2.0
func ParseFiles(_ filenames: string...) -> (Memory<Template>, error)
// Island
func ParseFiles(_ filenames: string...) -> (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
func ParseFiles(filenames []string) tuple of (Memory<Template>, error)
// Island
func ParseFiles(filenames []string) tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
Function ParseFiles(ParamArray filenames As string()) As Tuple (Of Memory<Template>, error)
// Island
Function ParseFiles(ParamArray filenames As string()) As Tuple (Of Memory<Template>, error)

Parameters:

  • filenames:

ParseGlob

 

// .NET, .NET Standard 2.0
method ParseGlob(pattern: string): tuple of (Memory<Template>, error)
// Island
method ParseGlob(pattern: string): tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
(Memory<Template>, error) ParseGlob(string pattern)
// Island
(Memory<Template>, error) ParseGlob(string pattern)

 

// .NET, .NET Standard 2.0
func ParseGlob(_ pattern: string) -> (Memory<Template>, error)
// Island
func ParseGlob(_ pattern: string) -> (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
func ParseGlob(pattern string) tuple of (Memory<Template>, error)
// Island
func ParseGlob(pattern string) tuple of (Memory<Template>, error)

 

// .NET, .NET Standard 2.0
Function ParseGlob(pattern As string) As Tuple (Of Memory<Template>, error)
// Island
Function ParseGlob(pattern As string) As Tuple (Of Memory<Template>, error)

Parameters:

  • pattern:

ParseName

 

property ParseName: string read write;

 

string ParseName { get; set; }

 

var ParseName: string { get{} set{} }

 

ParseName string

 

Property ParseName() As string

Root

 

// .NET, .NET Standard 2.0
property Root: Memory<ListNode> read write;
// Island
property Root: Memory<ListNode> read write;

 

// .NET, .NET Standard 2.0
Memory<ListNode> Root { get; set; }
// Island
Memory<ListNode> Root { get; set; }

 

// .NET, .NET Standard 2.0
var Root: Memory<ListNode> { get{} set{} }
// Island
var Root: Memory<ListNode> { get{} set{} }

 

// .NET, .NET Standard 2.0
Root Memory<ListNode>
// Island
Root Memory<ListNode>

 

// .NET, .NET Standard 2.0
Property Root() As Memory<ListNode>
// Island
Property Root() As Memory<ListNode>

Templates

 

// .NET, .NET Standard 2.0
method Templates: Slice<Memory<Template>>
// Island
method Templates: Slice<Memory<Template>>

 

// .NET, .NET Standard 2.0
Slice<Memory<Template>> Templates()
// Island
Slice<Memory<Template>> Templates()

 

// .NET, .NET Standard 2.0
func Templates() -> Slice<Memory<Template>>
// Island
func Templates() -> Slice<Memory<Template>>

 

// .NET, .NET Standard 2.0
func Templates() Slice<Memory<Template>>
// Island
func Templates() Slice<Memory<Template>>

 

// .NET, .NET Standard 2.0
Function Templates() As Slice<Memory<Template>>
// Island
Function Templates() As Slice<Memory<Template>>

Tree

 

// .NET, .NET Standard 2.0
var Tree: Memory<Tree>;
// Island
var Tree: Memory<Tree>;

 

// .NET, .NET Standard 2.0
Memory<Tree> Tree
// Island
Memory<Tree> Tree

 

// .NET, .NET Standard 2.0
var Tree: Memory<Tree>
// Island
var Tree: Memory<Tree>

 

// .NET, .NET Standard 2.0
Tree Memory<Tree>
// Island
Tree Memory<Tree>

 

// .NET, .NET Standard 2.0
FIELD Tree() As Memory<Tree>
// Island
FIELD Tree() As Memory<Tree>

 

Tree

 

// .NET, .NET Standard 2.0
var Tree: Memory<Tree>;
// Island
var Tree: Memory<Tree>;

 

// .NET, .NET Standard 2.0
Memory<Tree> Tree
// Island
Memory<Tree> Tree

 

// .NET, .NET Standard 2.0
var Tree: Memory<Tree>
// Island
var Tree: Memory<Tree>

 

// .NET, .NET Standard 2.0
Tree Memory<Tree>
// Island
Tree Memory<Tree>

 

// .NET, .NET Standard 2.0
FIELD Tree() As Memory<Tree>
// Island
FIELD Tree() As Memory<Tree>

 

ParseName

 

property ParseName: string read write;

 

string ParseName { get; set; }

 

var ParseName: string { get{} set{} }

 

ParseName string

 

Property ParseName() As string

Root

 

// .NET, .NET Standard 2.0
property Root: Memory<ListNode> read write;
// Island
property Root: Memory<ListNode> read write;

 

// .NET, .NET Standard 2.0
Memory<ListNode> Root { get; set; }
// Island
Memory<ListNode> Root { get; set; }

 

// .NET, .NET Standard 2.0
var Root: Memory<ListNode> { get{} set{} }
// Island
var Root: Memory<ListNode> { get{} set{} }

 

// .NET, .NET Standard 2.0
Root Memory<ListNode>
// Island
Root Memory<ListNode>

 

// .NET, .NET Standard 2.0
Property Root() As Memory<ListNode>
// Island
Property Root() As Memory<ListNode>

 

constructor

 

constructor

 

Template()

 

init()

 

Sub New()

constructor (Template)

 

constructor(value: Template)

 

Template(Template value)

 

init(_ value: Template)

 

Sub New(value As Template)

Parameters:

  • value:

Copy

 

// .NET, .NET Standard 2.0
method Copy: Memory<Tree>
// Island
method Copy: Memory<Tree>

 

// .NET, .NET Standard 2.0
Memory<Tree> Copy()
// Island
Memory<Tree> Copy()

 

// .NET, .NET Standard 2.0
func Copy() -> Memory<Tree>
// Island
func Copy() -> Memory<Tree>

 

// .NET, .NET Standard 2.0
func Copy() Memory<Tree>
// Island
func Copy() Memory<Tree>

 

// .NET, .NET Standard 2.0
Function Copy() As Memory<Tree>
// Island
Function Copy() As Memory<Tree>

ErrorContext

 

method ErrorContext(n: Node): tuple of (location: string, context: string)

 

(string location, string context) ErrorContext(Node n)

 

func ErrorContext(_ n: Node) -> (string, string)

 

func ErrorContext(n Node) tuple of (|name=location| string, |name=context| string)

 

Function ErrorContext(n As Node) As Tuple (Of string, string)

Parameters:

  • n: