コード例 #1
0
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
}
コード例 #2
0
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
}