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 ( import (
"crypto/md5" "crypto/md5"

2
DB.go
View File

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

View File

@ -34,7 +34,7 @@ clean:
# #
staticResources.go: static/ static/* 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 ( import (
"time" "time"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
package yatwiki3 package yatwiki
import ( import (
"bytes" "bytes"
@ -8,7 +8,7 @@ import (
"html/template" "html/template"
"net/http" "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) { func (this *WikiServer) routeDiff(w http.ResponseWriter, r *http.Request, oldRev, newRev int) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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