rename package yatwiki3->yatwiki

This commit is contained in:
mappu 2017-07-12 18:43:11 +12:00
parent 11a4f97212
commit 1c4505a2d9
22 changed files with 26 additions and 26 deletions

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"crypto/md5"

2
DB.go
View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -34,7 +34,7 @@ clean:
#
staticResources.go: static/ static/*
go-bindata -o staticResources.go -prefix static -pkg yatwiki3 static
go-bindata -o staticResources.go -prefix static -pkg yatwiki static
#

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"time"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"encoding/json"

View File

@ -8,7 +8,7 @@ import (
"net/http"
"os"
"code.ivysaur.me/yatwiki3"
"code.ivysaur.me/yatwiki"
)
func main() {
@ -17,13 +17,13 @@ func main() {
configPath := flag.String("config", "config.json", "Configuration file")
flag.Parse()
opts := yatwiki3.ServerOptions{}
opts := yatwiki.ServerOptions{}
cfg, err := ioutil.ReadFile(*configPath)
if err != nil {
if os.IsNotExist(err) {
opts = *yatwiki3.DefaultOptions()
opts = *yatwiki.DefaultOptions()
if cfg, err := json.MarshalIndent(opts, "", "\t"); err == nil {
err := ioutil.WriteFile(*configPath, cfg, 0644)
if err != nil {
@ -43,7 +43,7 @@ func main() {
}
}
ws, err := yatwiki3.NewWikiServer(&opts)
ws, err := yatwiki.NewWikiServer(&opts)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"bytes"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"fmt"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"bytes"
@ -8,7 +8,7 @@ import (
"html/template"
"net/http"
"code.ivysaur.me/yatwiki3/diff"
"code.ivysaur.me/yatwiki/diff"
)
func (this *WikiServer) routeDiff(w http.ResponseWriter, r *http.Request, oldRev, newRev int) {

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"html/template"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"net/http"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"fmt"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"fmt"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"errors"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package yatwiki3
package yatwiki
import (
"regexp"

View File

@ -4,7 +4,7 @@
// static/wiki.css
// DO NOT EDIT!
package yatwiki3
package yatwiki
import (
"bytes"