Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. Golang template

[Golang] Create Template Using fmt.Sprintf

November 27, 2018

Create short pieces of templates using fmt.Sprintf in Go.

 read more »

[Golang] Serve Template Data From YAML File

February 25, 2017

Extract template data from human readable YAML file and create textual output in Go.

 read more »

Go 1.8 Template Execute Output Inconsistent

February 21, 2017 (Updated: April 08, 2017)

Bug in Go 1.8 text/template and html/template package

 read more »

Golang Template Parse Directory

February 13, 2017

Complement to Go text/template and html/template package - Parse all files in directory (including sub-directories).

 read more »

Golang Template Inheritance (Python Jinja2 extends & include)

February 05, 2017

Template inheritance via Go html/template package. Show how one tempalate extends from another, and also include templates, just as how we do by Python Jinja2.

 read more »

Guess Metadata from HTML and Converted to reStructuredText

May 16, 2016

Guess metadata from HTML webpage and convert it to reStructuredText format.

 read more »

Basic HTML Table to reStructuredText Support for HTML2RST service on GAE Go

May 15, 2016

Add basic HTML table to reStructuredText support for online HTML to reStructuredText service on Google App Engine Go.

 read more »

Online Taobao Item to reStructuredText Image on Google App Engine Go

May 14, 2016

Online service on Google App Engine Go, which helps you extract title, image URL from Taobao item webpage, and output in reStructuredText format.

 read more »

Online HTML to reStructuredText on Google App Engine Go

May 13, 2016

Online HTML to reStructuredText service on Google App Engine Go.

 read more »

Google App Engine Go - HTML Link to reStructuredText

May 11, 2016

Given a webpage URL. Fetch the title of the webpage and output reStructuredText link on Google App Engine Go.

 read more »

goquery - Replace HTML Link Node with reStructuredText Text Node

May 04, 2016

Replace HTML links node with text node of restructuredtext format in a webpage via goquery in Go programming language.

 read more »

[Golang] Create reStructuredText Metadata via text/template Package

April 22, 2016

Create reStructuredText metadata via Go text/template and text/width package.

 read more »

[Golang] Convert All HTML Links to reStructuredText via goquery

April 12, 2016

Convert all HTML links to restructuredtext in a webpage via goquery in Go programming language.

 read more »

[Golang] Hacker News Link to reStructuredText

April 04, 2016

Extract title and URL from Hacker News comment via goquery, and then output the info to reStructuredText footnote.

 read more »

[Golang] Extract Title, Image, and URL via goquery

March 31, 2016

Extract title, image, and URL in buy123 product webpage via goquery, and then output the info to reStructuredText image.

 read more »

[Golang] Example for block Action in Template package

March 02, 2016

Example for block action in Go text/template and html/template packages.

 read more »

xgettext Extract Translatable Strings From Golang html/template

January 19, 2016

Use xgettext (one of GNU gettext utilities) to extract translatable strings from HTML templates of Go html/template.

 read more »

i18n Golang Web Application by gettext and html/template

January 19, 2016

i18n (Internationalization) Go web applications by GNU gettext tools and html/template. Use PO and MO files generated by gettext in Golang web application to render HTML of specific languages by html/template.

 read more »

Golang html/template versus Python Jinja2 (7) - Custom Functions and Filters

March 12, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Go template custom function vs Jinja2 custom filter and function.

 read more »

Golang html/template versus Python Jinja2 (6) - Template Inheritance (Extends)

March 08, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Mimic Jinja2 template inheritance in Go html/template

 read more »

Golang html/template versus Python Jinja2 (5) - Maps and Dictionaries

March 07, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Loop through Python Dictionaries vs Go Maps

 read more »

Golang html/template versus Python Jinja2 (4) - Arrays and Slices Index

March 06, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices - Loop Index

 read more »

Golang html/template versus Python Jinja2 (3) - Arrays and Slices

March 05, 2015 (Updated: March 06, 2015)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices

 read more »

Golang html/template versus Python Jinja2 (2)

February 24, 2015

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - print Hello World! on screen

 read more »

Golang html/template versus Python Jinja2 (1)

February 21, 2015 (Updated: March 06, 2015)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Load and Serve Templates

 read more »
Powered by Github Pages, Pelican, pyScss.