|
You are here |
blog.carlana.net | ||
| | | | |
hjr265.me
|
|
| | | | | Working with user-generated content is always a nightmare interesting. Let's say you are building a blogging platform with Go. Your users write posts in Markdown that the platform then renders as HTML. And, you want to add target="_blank" and rel="noreferrer noopener" to all the external links. How do you do that? Annotated Code The steps are simple: Parse the HTML with golang.org/x/net/html. Walk the tree. The annotated code below implements a simple Walk function. | |
| | | | |
www.uraimo.com
|
|
| | | | | The GYB tool is used internally in Swift to simplify source files with many snippets of code that follow a common pattern. GYB provides some additional directives that are parsed by the tool to generate the final source files. This short tutorial describes how to use GYB in your own projects. | |
| | | | |
cep.dev
|
|
| | | | | A small post with a bit of Go trivia | |
| | | | |
antonz.org
|
|
| | | Reviewing the key changes in json/v2. | ||