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()

constructor (Template)

 

constructor(value: Template)

 

Template(Template value)

 

init(_ value: Template)

Parameters:

  • value:

AddParseTree (string, Reference<Tree>): tuple of (Reference<Template>, error) .NET, .NET Standard 2.0

 

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

 

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

 

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

 

// .NET
func AddParseTree(name string, tree Reference<Tree>) (Reference<Template>, error)
// .NET Standard 2.0
func AddParseTree(name string, tree Reference<Tree>) ValueTuple<Reference<Template>, error>

Parameters:

  • name:
  • tree:

AddParseTree (string, Reference<Tree>): tuple of (Reference<Template>, error) Island

 

method AddParseTree(name: string; tree: Reference<Tree>): tuple of (Reference<Template>, error)

 

(Reference<Template>, error) AddParseTree(string name, Reference<Tree> tree)

 

func AddParseTree(_ name: string, _ tree: Reference<Tree>) -> (Reference<Template>, error)

 

func AddParseTree(name string, tree Reference<Tree>) (Reference<Template>, error)

Parameters:

  • name:
  • tree:

Clone

 

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

 

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

 

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

 

// .NET, Island
func Clone() (Reference<Template>, error)
// .NET Standard 2.0
func Clone() ValueTuple<Reference<Template>, error>

Copy

 

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

 

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

 

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

 

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

DefinedTemplates

 

method DefinedTemplates: string

 

string DefinedTemplates()

 

func DefinedTemplates() -> string

 

func DefinedTemplates() string

Delims

 

method Delims(left: string; right: string): Reference<Template>

 

Reference<Template> Delims(string left, string right)

 

func Delims(_ left: string, _ right: string) -> Reference<Template>

 

func Delims(left string, right string) Reference<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) -> (location:string, context:string)

 

func ErrorContext(n Node) (location string, context 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

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

Parameters:

  • wr:
  • name:
  • data:

Funcs

 

method Funcs(funcMap: FuncMap): Reference<Template>

 

Reference<Template> Funcs(FuncMap funcMap)

 

func Funcs(_ funcMap: FuncMap) -> Reference<Template>

 

func Funcs(funcMap FuncMap) Reference<Template>

Parameters:

  • funcMap:

Lookup

 

method Lookup(name: string): Reference<Template>

 

Reference<Template> Lookup(string name)

 

func Lookup(_ name: string) -> Reference<Template>

 

func Lookup(name string) Reference<Template>

Parameters:

  • name:

Name

 

method Name: string

 

string Name()

 

func Name() -> string

 

func Name() string

New

 

method New(name: string): Reference<Template>

 

Reference<Template> New(string name)

 

func New(_ name: string) -> Reference<Template>

 

func New(name string) Reference<Template>

Parameters:

  • name:

Option

 

method Option(params opt: array of string): Reference<Template>

 

Reference<Template> Option(params string[] opt)

 

func Option(_ opt: string...) -> Reference<Template>

 

func Option(opt []string) Reference<Template>

Parameters:

  • opt:

Parse

 

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

 

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

 

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

 

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

Parameters:

  • text:

ParseFiles

 

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

 

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

 

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

 

// .NET, Island
func ParseFiles(filenames []string) (Reference<Template>, error)
// .NET Standard 2.0
func ParseFiles(filenames []string) ValueTuple<Reference<Template>, error>

Parameters:

  • filenames:

ParseGlob

 

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

 

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

 

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

 

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

Parameters:

  • pattern:

ParseName

 

property ParseName: string read write;

 

string ParseName { get; set; }

 

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

 

ParseName string

Root

 

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

 

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

 

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

 

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

Templates

 

method Templates: Slice<Reference<Template>>

 

Slice<Reference<Template>> Templates()

 

func Templates() -> Slice<Reference<Template>>

 

func Templates() Slice<Reference<Template>>

Tree

 

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

 

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

 

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

 

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

 

Tree

 

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

 

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

 

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

 

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

 

ParseName

 

property ParseName: string read write;

 

string ParseName { get; set; }

 

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

 

ParseName string

Root

 

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

 

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

 

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

 

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

 

constructor

 

constructor

 

Template()

 

init()

constructor (Template)

 

constructor(value: Template)

 

Template(Template value)

 

init(_ value: Template)

Parameters:

  • value:

Copy

 

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

 

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

 

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

 

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

ErrorContext

 

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

 

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

 

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

 

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

Parameters:

  • n:

AddParseTree (string, Reference<Tree>): tuple of (Reference<Template>, error) .NET, .NET Standard 2.0

 

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

 

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

 

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

 

// .NET
func AddParseTree(name string, tree Reference<Tree>) (Reference<Template>, error)
// .NET Standard 2.0
func AddParseTree(name string, tree Reference<Tree>) ValueTuple<Reference<Template>, error>

Parameters:

  • name:
  • tree:

AddParseTree (string, Reference<Tree>): tuple of (Reference<Template>, error) Island

 

method AddParseTree(name: string; tree: Reference<Tree>): tuple of (Reference<Template>, error)

 

(Reference<Template>, error) AddParseTree(string name, Reference<Tree> tree)

 

func AddParseTree(_ name: string, _ tree: Reference<Tree>) -> (Reference<Template>, error)

 

func AddParseTree(name string, tree Reference<Tree>) (Reference<Template>, error)

Parameters:

  • name:
  • tree:

Clone

 

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

 

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

 

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

 

// .NET, Island
func Clone() (Reference<Template>, error)
// .NET Standard 2.0
func Clone() ValueTuple<Reference<Template>, error>

DefinedTemplates

 

method DefinedTemplates: string

 

string DefinedTemplates()

 

func DefinedTemplates() -> string

 

func DefinedTemplates() string

Delims

 

method Delims(left: string; right: string): Reference<Template>

 

Reference<Template> Delims(string left, string right)

 

func Delims(_ left: string, _ right: string) -> Reference<Template>

 

func Delims(left string, right string) Reference<Template>

Parameters:

  • left:
  • right:

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

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

Parameters:

  • wr:
  • name:
  • data:

Funcs

 

method Funcs(funcMap: FuncMap): Reference<Template>

 

Reference<Template> Funcs(FuncMap funcMap)

 

func Funcs(_ funcMap: FuncMap) -> Reference<Template>

 

func Funcs(funcMap FuncMap) Reference<Template>

Parameters:

  • funcMap:

Lookup

 

method Lookup(name: string): Reference<Template>

 

Reference<Template> Lookup(string name)

 

func Lookup(_ name: string) -> Reference<Template>

 

func Lookup(name string) Reference<Template>

Parameters:

  • name:

Name

 

method Name: string

 

string Name()

 

func Name() -> string

 

func Name() string

New

 

method New(name: string): Reference<Template>

 

Reference<Template> New(string name)

 

func New(_ name: string) -> Reference<Template>

 

func New(name string) Reference<Template>

Parameters:

  • name:

Option

 

method Option(params opt: array of string): Reference<Template>

 

Reference<Template> Option(params string[] opt)

 

func Option(_ opt: string...) -> Reference<Template>

 

func Option(opt []string) Reference<Template>

Parameters:

  • opt:

Parse

 

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

 

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

 

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

 

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

Parameters:

  • text:

ParseFiles

 

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

 

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

 

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

 

// .NET, Island
func ParseFiles(filenames []string) (Reference<Template>, error)
// .NET Standard 2.0
func ParseFiles(filenames []string) ValueTuple<Reference<Template>, error>

Parameters:

  • filenames:

ParseGlob

 

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

 

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

 

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

 

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

Parameters:

  • pattern:

Templates

 

method Templates: Slice<Reference<Template>>

 

Slice<Reference<Template>> Templates()

 

func Templates() -> Slice<Reference<Template>>

 

func Templates() Slice<Reference<Template>>