Global

Location

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

Methods


HTMLEscape

 

class method HTMLEscape(w: Writer; b: Slice<Byte>)

 

static void HTMLEscape(Writer w, Slice<Byte> b)

 

static func HTMLEscape(_ w: Writer, _ b: Slice<Byte>)

 

func HTMLEscape(w Writer, b Slice<Byte>)

Parameters:

  • w:
  • b:

HTMLEscaper

 

class method HTMLEscaper(params args: array of Object): string

 

static string HTMLEscaper(params Object[] args)

 

static func HTMLEscaper(_ args: Object...) -> string

 

func HTMLEscaper(args []interface{}) string

Parameters:

  • args:

HTMLEscapeString

 

class method HTMLEscapeString(s: string): string

 

static string HTMLEscapeString(string s)

 

static func HTMLEscapeString(_ s: string) -> string

 

func HTMLEscapeString(s string) string

Parameters:

  • s:

IsTrue

 

class method IsTrue(val: Object): tuple of (truth: Boolean, ok: Boolean)

 

static (Boolean truth, Boolean ok) IsTrue(Object val)

 

static func IsTrue(_ val: Object) -> (truth:Boolean, ok:Boolean)

 

func IsTrue(val interface{}) (truth Boolean, ok Boolean)

Parameters:

  • val:

JSEscape

 

class method JSEscape(w: Writer; b: Slice<Byte>)

 

static void JSEscape(Writer w, Slice<Byte> b)

 

static func JSEscape(_ w: Writer, _ b: Slice<Byte>)

 

func JSEscape(w Writer, b Slice<Byte>)

Parameters:

  • w:
  • b:

JSEscaper

 

class method JSEscaper(params args: array of Object): string

 

static string JSEscaper(params Object[] args)

 

static func JSEscaper(_ args: Object...) -> string

 

func JSEscaper(args []interface{}) string

Parameters:

  • args:

JSEscapeString

 

class method JSEscapeString(s: string): string

 

static string JSEscapeString(string s)

 

static func JSEscapeString(_ s: string) -> string

 

func JSEscapeString(s string) string

Parameters:

  • s:

Must

 

class method Must(t: Reference<Template>; err: error): Reference<Template>

 

static Reference<Template> Must(Reference<Template> t, error err)

 

static func Must(_ t: Reference<Template>, _ err: error) -> Reference<Template>

Parameters:

  • t:
  • err:

New

 

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

 

static Reference<Template> New(string name)

 

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

 

func New(name string) Reference<Template>

Parameters:

  • name:

ParseFiles

 

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

 

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

 

// .NET, Island
static func ParseFiles(_ filenames: string...) -> (Reference<Template>, error)
// .NET Standard 2.0
static 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
class method ParseGlob(pattern: string): tuple of (Reference<Template>, error)
// .NET Standard 2.0
class method ParseGlob(pattern: string): ValueTuple<Reference<Template>, error>

 

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

 

// .NET, Island
static func ParseGlob(_ pattern: string) -> (Reference<Template>, error)
// .NET Standard 2.0
static 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:

URLQueryEscaper

 

class method URLQueryEscaper(params args: array of Object): string

 

static string URLQueryEscaper(params Object[] args)

 

static func URLQueryEscaper(_ args: Object...) -> string

 

func URLQueryEscaper(args []interface{}) string

Parameters:

  • args: