mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Cleaned up a little
Former-commit-id: af2ba688dac0d0b970d2c5fe060c0cfbdea2aacf [formerly 3ffec2cba795a7cdc1d24993ec39de29f01e0a92] [formerly a9e84aa28cd48712673233d02a2053a7f79f84af [formerly 179cf911ca
]]
Former-commit-id: 996d7c30b7d1ea60ca3ea1ba5bb560464e1d12e0 [formerly 9f8c7111ba6a6b7fdb44fb511d439b9acebcf0bf]
Former-commit-id: 39b5044fd6917f9f146fe0fdd431ceda8bb096cb
This commit is contained in:
parent
021e5d5a8e
commit
f43b34d5ff
7
main.go
7
main.go
@ -57,11 +57,10 @@ Options:`)
|
|||||||
// Default page
|
// Default page
|
||||||
p := CowyoData{"about", about_page, []string{}, []string{}}
|
p := CowyoData{"about", about_page, []string{}, []string{}}
|
||||||
p.save(about_page)
|
p.save(about_page)
|
||||||
fmt.Println(about_page)
|
|
||||||
|
|
||||||
var q CowyoData
|
//var q CowyoData
|
||||||
q.load("SpikySeaSlug")
|
//q.load("SpikySeaSlug")
|
||||||
rebuildTexts(q)
|
//rebuildTexts(q)
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
r.LoadHTMLGlob("templates/*")
|
r.LoadHTMLGlob("templates/*")
|
||||||
|
@ -41,15 +41,11 @@ func wshandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
var p CowyoData
|
var p CowyoData
|
||||||
err = p.load(m.Title)
|
err = p.load(m.Title)
|
||||||
fmt.Println("LOADED")
|
|
||||||
fmt.Println(p)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
if m.UpdateServer {
|
if m.UpdateServer {
|
||||||
err := p.save(m.TextData)
|
err := p.save(m.TextData)
|
||||||
fmt.Println("SAVED")
|
|
||||||
fmt.Println(p)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user