【文件属性】:
文件名称:sfhb:超快速头条博客
文件大小:6KB
文件格式:ZIP
更新时间:2021-03-18 07:57:13
Go
sfhb-超快速无头博客
这是用于使用golang编写的简单博客的超快速REST-API服务器。
数据格式和存储
sfhb由真正简单的数据结构提供支持
type Article struct {
Id uuid.UUID `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
Content string `json:"content"`
Created time.Time `json:"created"`
}
这转化为简单的json
{
id: "uuid",
title: "title"
type: "whatever"
content: "yay"
created: "ISO 8601 date string"
}
sfhb会将其数据存储在
【文件预览】:
sfhb-main
----go.mod(96B)
----.github()
--------workflows()
----go.sum(326B)
----src()
--------main.go(4KB)
--------persist()
----Dockerfile(615B)
----LICENSE(1KB)
----README.md(1KB)