(section, path, description string)
| 53 | } |
| 54 | |
| 55 | func (pc *IndexPageContent) AddLink(section, path, description string) { |
| 56 | pc.mu.Lock() |
| 57 | defer pc.mu.Unlock() |
| 58 | |
| 59 | sectionMap := pc.content[section] |
| 60 | if sectionMap == nil { |
| 61 | sectionMap = make(map[string]string) |
| 62 | pc.content[section] = sectionMap |
| 63 | } |
| 64 | |
| 65 | sectionMap[path] = description |
| 66 | } |
| 67 | |
| 68 | func (pc *IndexPageContent) GetContent() map[string]map[string]string { |
| 69 | pc.mu.Lock() |
no outgoing calls