func (openControl *OpenControlGitBook) getNarrative(narrative base.Section, text string) string { if narrative.GetKey() != "" { text = fmt.Sprintf("%s\n##### %s\n", text, narrative.GetKey()) } text = fmt.Sprintf("%s%s\n", text, narrative.GetText()) return text }
func (openControl *OpenControlGitBook) getParameter(text string, parameter base.Section) string { text = fmt.Sprintf("%s\n###### %s\n", text, parameter.GetKey()) text = fmt.Sprintf("%s%s\n", text, parameter.GetText()) return text }