## this is a comment
$ echo this is a command
this is a command
## edit the file
$vi foo.md
+++
date = "2014-09-28"
title = "creating a new theme"
+++
bah and humbug
:wq
## show it
$ cat foo.md
+++
date = "2014-09-28"
title = "creating a new theme"
+++
bah and humbug
$
// GetTitleFunc returns a func that can be used to transform a string to// title case.//
// The supported styles are//
// - "Go" (strings.Title)// - "AP" (see https://www.apstylebook.com/)// - "Chicago" (see http://www.chicagomanualofstyle.org/home.html)//
// If an unknown or empty style is provided, AP style is what you get.funcGetTitleFunc(stylestring)func(sstring)string{switchstrings.ToLower(style){case"go":returnstrings.Titlecase"chicago":tc:=transform.NewTitleConverter(transform.ChicagoStyle)returntc.Titledefault:tc:=transform.NewTitleConverter(transform.APStyle)returntc.Title}}