25 lines
305 B
Go
25 lines
305 B
Go
package main
|
|
|
|
import (
|
|
"html/template"
|
|
"sync"
|
|
)
|
|
|
|
type Post struct {
|
|
BlogTitle string
|
|
Lang string
|
|
Id string
|
|
Title string
|
|
Author string
|
|
Date string
|
|
HTML template.HTML
|
|
Text string
|
|
}
|
|
|
|
type Blog struct {
|
|
Title string
|
|
Lang string
|
|
Posts []Post
|
|
mutex sync.Mutex
|
|
}
|