Commits

Yann Malet  committed 371b527

Rename the package from gowiki to gowebexp as this is not at all a wiki app

  • Participants
  • Parent commits 4d9cc78

Comments (0)

Files changed (4)

File cmd/server.go

 
 import (
 	"fmt"
-	"gowiki/web"
+	"gowebexp/web"
 	"net/http"
 )
 
 	//"os"
 	"crypto/rand"
 	"encoding/base64"
-	"gowiki/pages"
+	"gowebexp/pages"
 	"path/filepath"
 )
 
 	//if err != nil {
 	//	fmt.Println("An error occured while trying to retireve the current path", err)
 	//}
-	path := "/home/yml/Dropbox/Devs/golang/gorilla_on_web/src/gowiki/"
+	path := "/home/yml/Dropbox/Devs/golang/gorilla_on_web/src/gowebexp/"
 	app := &WebApp{
 		Router:      mux.NewRouter(),
 		Storage:     storage,
 
 func (app *WebApp) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	// Get the session and write a DummyKey
-	session, _ := App.CookieStore.Get(r, "gowiki")
+	session, _ := App.CookieStore.Get(r, "gowebexp")
 	csrf_token, ok := session.Values["csrf_token"]
 	if !ok {
 		csrf_token = App.GenerateCsrfToken()

File web/storages.go

 
 import (
 	"errors"
-	"gowiki/pages"
+	"gowebexp/pages"
 	"strconv"
 	"strings"
 )

File web/storages_test.go

 
 import (
 	"fmt"
-	"gowiki/pages"
+	"gowebexp/pages"
 	"testing"
 )