Displaying 1 to 20 from 43 results

render - Go package for easily rendering JSON, XML, binary data, and HTML templates responses.

  •    Go

Render is a package that provides functionality for easily rendering JSON, XML, text, binary data, and HTML templates. This package is based on the Martini render work.Go 1.6 introduces a new block action. This conflicts with Render's included block template function. To provide an easy migration path, a new function was created called partial. It is a duplicate of the old block function. It is advised that all users of the block function update their code to avoid any issues in the future. Previous to Go 1.6, Render's block functionality will continue to work but a message will be logged urging you to migrate to the new partial function.

minify - Go minifiers for web formats

  •    Go

Online demo if you need to minify files now.Command line tool that minifies concurrently and supports watching file changes.

chroma - A general purpose syntax highlighter in pure Go

  •    Go

NOTE: As Chroma has just been released, its API is still in flux. That said, the high-level interface should not change significantly.Chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc.

semaphore - Open Source alternative to Ansible Tower

  •    Go

Please follow the contribution guide. Any questions, please open an issue. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.




Bluemonday - A fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS

  •    Go

bluemonday is a HTML sanitizer implemented in Go. It is fast and highly configurable.bluemonday takes untrusted user generated content as an input, and will return HTML that has been sanitised against a whitelist of approved HTML elements and attributes so that you can safely include the content in your web page.

docconv - Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text

  •    Go

A Go wrapper library to convert PDF, DOC, DOCX, XML, HTML, RTF, ODT, Pages documents and images (see optional dependencies below) to plain text. Note for returning users: the Go code path for this pkg been moved to code.sajari.com/docconv. Follow the installation instructions to checkout a version of the code in the correct place.

gotenberg - :scroll: A stateless API for converting Markdown files, HTML files and Office documents to PDF

  •    Go

At TheCodingMachine, we build a lot of web applications (intranets, extranets and so on) which require to generate PDF from various sources. Each time, we ended up using some well known libraries like wkhtmltopdf or unoconv and kind of lost time by reimplementing a solution from a project to another project. Meh. The API is now available on your host under http://127.0.0.1:3000.


parse - Go parsers for web formats

  •    Go

This package contains several lexers and parsers written in Go. All subpackages are built to be streaming, high performance and to be in accordance with the official (latest) specifications.The lexers are implemented using buffer.Lexer in https://github.com/tdewolff/buffer and the parsers work on top of the lexers. Some subpackages have hashes defined (using Hasher) that speed up common byte-slice comparisons.

goq - A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library

  •    Go

Package goq was built to allow users to declaratively unmarshal HTML into go structs using struct tags composed of css selectors.I've made a best effort to behave very similarly to JSON and XML decoding as well as exposing as much information as possible in the event of an error to help you debug your Unmarshaling issues.

xquery - xquery lets you extract data or evaluate from HTML/XML documents using XPath expression

  •    Go

A golang package, lets you extract data from HTML/XML documents using XPath expression.List of supported XPath functions you can found at XPath Package.

ftmpl - Fast typesafe templating for golang

  •    Go

ftmpl is a fast/compiled/typesafe templating "language" for golang. Every template must be saved in a file with extension .tmpl. The template file can be "compiled" in Go code (and this is typically done in the build procedure).

http-response - A sample on howto notify a work status in tradional (non javascript) golang web app

  •    Go

A sample on howto notify a work status in tradional (non javascript) golang web app

godown - Convert HTML into Markdown

  •    Go

This is work in progress.

golymer - Web components with golang (gopherjs)

  •    Go

With golymer you can create your own HTML custom elements, just by registering a go struct. The content of the shadowDOM has automatic data bindings to the struct fields. Read an blog post. The struct name, in CamelCase, is converted to the kebab-case. Because html custom elements must have at least one dash in the name, the struct name must also have at least one "hump" in the camel case name. (MyElem -> my-elem). So, for example, an struct named Foo will not be defined and the Define function will return an error.

draftjs - Draft.js exporter for Go

  •    Go

Draft.js is a framework for building rich text editors. However, it does not support exporting documents at HTML. This package is designed to take the raw ContentState (output of convertToRaw) from Draft.js and convert it to HTML using Go. Mostly it useful for server-side rendering. I should note this package does not provide any input validation and assumes correct and safe input data.

userpages - my blog for sharing (source code for siongui.github.io)

  •    Go

All works, including posts and code, of Siong-Ui Te are released in public domain. Please see UNLICENSE.