func (openControl *OpenControlGitBook) getNarrative(narrative common.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 common.Section) string { text = fmt.Sprintf("%s\n###### %s\n", text, parameter.GetKey()) text = fmt.Sprintf("%s%s\n", text, parameter.GetText()) return text }