It seems the list was creating the problem. If I add a line after the text Pre-requisites it works as expected.
// Package hello-world provides a helloworld example // // Pre-requisites // // I need to add the this line // * Go 1.5+ // * Linux or MacOS // * https://onsi.github.io/ginkgo/ for executing the tests // // package hello_world Is this an issue with godoc or it is the expected behavior? On Saturday, 24 September 2016 02:49:08 UTC+5:30, DM wrote: > > I am trying to add a title in my godoc. I have referred godoctricks > <https://godoc.org/github.com/fluhus/godoc-tricks#Titles>. My godoc looks > like below:- > > // Package hello-world provides a helloworld example > // > // Pre-requisites > // > // * Go 1.5+ > // * Linux or MacOS > // * https://onsi.github.io/ginkgo/ for executing the tests > // > // > package hello_world > > > But the godoc is showing up as below with Pre-requisites not as title:- > > > <https://lh3.googleusercontent.com/-Y--Ko4sDj8I/V-Wb-aFwp-I/AAAAAAAAAIc/8uCoyzOjlYo8N4e98qY44xBwB69eEIPsgCLcB/s1600/Screen%2BShot%2B2016-09-24%2Bat%2B2.38.48%2BAM.png> > > > > > > > Can someone let me know what is going wrong? > > Environment:- > > > - Go 1.7 > - Mac OSX El Capitan > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.