()
| 66 | } |
| 67 | |
| 68 | func (pc *IndexPageContent) GetContent() map[string]map[string]string { |
| 69 | pc.mu.Lock() |
| 70 | defer pc.mu.Unlock() |
| 71 | |
| 72 | result := map[string]map[string]string{} |
| 73 | for k, v := range pc.content { |
| 74 | sm := map[string]string{} |
| 75 | maps.Copy(sm, v) |
| 76 | result[k] = sm |
| 77 | } |
| 78 | return result |
| 79 | } |
| 80 | |
| 81 | var indexPageTemplate = ` |
| 82 | <!DOCTYPE html> |