From 0a6e7b6a26ebe40bca5d70f9975bb9750e7035db Mon Sep 17 00:00:00 2001 From: sanandak Date: Mon, 9 Oct 2017 23:39:57 -0400 Subject: [PATCH] Fixed README examples (#57) - Fixed OrgHeaders call to reflect multiple value return - Changed call to Org to OrgCommon --- README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 46bc35f..9f98b5c 100644 --- a/README.org +++ b/README.org @@ -31,7 +31,7 @@ To retrieve the headers from a =[]byte=, call =OrgHeaders= and it will return a #+BEGIN_SRC go input := "#+title: goorgeous\n* Some Headline\n" - out := goorgeous.OrgHeaders(input) + out, _ := goorgeous.OrgHeaders(input) #+END_SRC #+BEGIN_SRC go @@ -46,7 +46,7 @@ After importing =github.com/chaseadamsio/goorgeous=, you can call =Org= with a = #+BEGIN_SRC go input := "#+TITLE: goorgeous\n* Some Headline\n" - out := goorgeous.Org(input) + out := goorgeous.OrgCommon([]byte(input)) #+END_SRC =out= will be: