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)
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)
Copy
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>
Parameters:
- left:
- right:
ErrorContext
func ErrorContext(_ n: Node) -> (string, string)
Function ErrorContext(n As Node) As Tuple (Of string, string)
Parameters:
- n:
Execute
func Execute(wr Writer, data interface{}) error
Parameters:
- wr:
- data:
ExecuteTemplate
func ExecuteTemplate(wr Writer, name string, data interface{}) 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>
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>
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>
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>
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)
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)
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)
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; }
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>>
Tree
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; }
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
ErrorContext
func ErrorContext(_ n: Node) -> (string, string)
Function ErrorContext(n As Node) As Tuple (Of string, string)
Parameters:
- n: