Documentation
¶
Index ¶
- func And() error
- func Call() error
- func Comment() error
- func Define() error
- func Else() error
- func ElseIf() error
- func Eq() error
- func FuncMap() error
- func Ge() error
- func Gt() error
- func Html() error
- func If() error
- func Index() error
- func Js() error
- func Le() error
- func Len() error
- func Lt() error
- func Must() error
- func Ne() error
- func New() error
- func NewRegister() mapping.Register
- func Newline() error
- func Not() error
- func Or() error
- func Pipe() error
- func Print() error
- func Printf() error
- func Println() error
- func Range() error
- func RangeElse() error
- func Slice() error
- func Structure() error
- func Urlquery() error
- func Variable() error
- func WhitespaceAndMinussign() error
- func With() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Comment ¶
func Comment() error
Comment -- text/template の テンプレート仕様 におけるコメントのサンプルです.
REFERENCES ¶
func Define ¶
func Define() error
Define -- text/template の テンプレート仕様 における define (独自テンプレートの定義) のサンプルです.
REFERENCES ¶
func ElseIf ¶
func ElseIf() error
ElseIf -- text/template の テンプレート仕様 におけるelseifのサンプルです.
REFERENCES ¶
func FuncMap ¶
func FuncMap() error
FuncMap -- text/template の テンプレート仕様 における FuncMap (独自関数の登録) のサンプルです.
REFERENCES ¶
func Ge ¶
func Ge() error
Ge -- text/template の テンプレート仕様 における ge (greater than equal) のサンプルです.
REFERENCES ¶
func Gt ¶
func Gt() error
Gt -- text/template の テンプレート仕様 における gt (greater than) のサンプルです.
REFERENCES ¶
func Le ¶
func Le() error
Le -- text/template の テンプレート仕様 における le (less than equal) のサンプルです.
REFERENCES ¶
func NewRegister ¶
NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。
func Print ¶
func Print() error
Print -- text/template の テンプレート仕様 における print 関数 のサンプルです.
REFERENCES ¶
func Printf ¶
func Printf() error
Printf -- text/template の テンプレート仕様 における printf 関数 のサンプルです.
REFERENCES ¶
func Println ¶
func Println() error
Println -- text/template の テンプレート仕様 における println 関数 のサンプルです.
REFERENCES ¶
func RangeElse ¶
func RangeElse() error
RangeElse -- text/template の テンプレート仕様 におけるrange .. elseのサンプルです.
REFERENCES ¶
func Urlquery ¶
func Urlquery() error
Urlquery -- text/template の テンプレート仕様 における urlquery 関数 のサンプルです.
REFERENCES ¶
func Variable ¶
func Variable() error
Variable -- text/template の テンプレート仕様 における 変数 のサンプルです.
REFERENCES ¶
func WhitespaceAndMinussign ¶
func WhitespaceAndMinussign() error
WhitespaceAndMinussign -- テンプレートで使用する {{- }} と {{ -}} についてのサンプルです。
- {{ -}} とすると、後続のスペースを除去する
- {{- }} とすると、直前のスペースを除去する
template package の説明
テンプレートのソースコードを整形するために アクションの左デリミタ(デフォルトでは"{{")の直後にマイナス記号と空白が続く場合、直前のテキストからすべての末尾の空白が切り取られます。 同様に、右のデリミタ("}}")の前に空白とマイナス記号がある場合、直後のテキストからすべての先行する空白が切り取られます。
REFERENCES
Types ¶
This section is empty.