# goorgeous **Repository Path**: mirrors_anthonyfok/goorgeous ## Basic Information - **Project Name**: goorgeous - **Description**: A go org syntax parser to html - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-10-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #+TITLE: chaseadamsio/goorgeous [[https://travis-ci.org/chaseadamsio/goorgeous.svg?branch=master]] [[https://coveralls.io/repos/github/chaseadamsio/goorgeous/badge.svg?branch=master]] /goorgeous is a Go Org to HTML Parser./ [[file:gopher_small.gif]] *Pronounced: Go? Org? Yes!* #+BEGIN_QUOTE "Org mode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system." - [[http://orgmode.org/][orgmode.org]] #+END_QUOTE The purpose of this package is to come as close as possible as parsing an =*.org= document into HTML, the same way one might publish [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][with org-publish-html from Emacs]]. * Installation #+BEGIN_SRC sh go get -u github.com/chaseadamsio/goorgeous #+END_SRC * Usage ** Org Headers To retrieve the headers from a =[]byte=, call =OrgHeaders= and it will return a =map[string]interface{}=: #+BEGIN_SRC go input := "#+title: goorgeous\n* Some Headline\n" out, _ := goorgeous.OrgHeaders(input) #+END_SRC #+BEGIN_SRC go map[string]interface{}{ "title": "goorgeous" } #+END_SRC ** Org Content After importing =github.com/chaseadamsio/goorgeous=, you can call =Org= with a =[]byte= and it will return an =html= version of the content as a =[]byte= #+BEGIN_SRC go input := "#+TITLE: goorgeous\n* Some Headline\n" out := goorgeous.OrgCommon([]byte(input)) #+END_SRC =out= will be: #+BEGIN_SRC html