Commit 232fb9a4 authored by owlo's avatar owlo

getting rid of the fluff

parent 068274c6
......@@ -42,7 +42,7 @@ func validateLogin(signature string, file []byte, actors []libs.ActorS) bool {
florpScanner := bufio.NewScanner(florpReader)
for florpScanner.Scan() {
fmt.Println(florpScanner.Text())
//fmt.Println(florpScanner.Text())
if florpScanner.Text() == signature {
florptext := strings.Split(florpScanner.Text(), ":")
for i := range actors {
......@@ -163,7 +163,7 @@ func validate(signature string, file []byte) bool {
if err != nil {
fmt.Println("\033[2;255;0;0mERROR\033[0m")
}
fmt.Println(UIDed.Id)
//fmt.Println(UIDed.Id)
UIDWriter, err := os.Create("tests/" + string(UIDed.Id))
UIDWriter.Write(UIDData)
......@@ -222,7 +222,7 @@ func upBork(borks []libs.ActorS) []byte {
fmt.Println("error marshalling borks")
fmt.Println(err)
}
fmt.Println(borkJson)
//fmt.Println(borkJson)
borkFile.Write(borkJson)
return borkJson
......@@ -258,7 +258,7 @@ func updateBork(currentActors string) libs.ActorS {
}
//fmt.Println(k)
//fmt.Println(string(actorReader))
fmt.Println(mockup)
//fmt.Println(mockup)
return mockup
}
......@@ -294,7 +294,7 @@ func initActors(currentActors string) libs.ActorS {
}
//fmt.Println(k)
//fmt.Println(string(actorReader))
fmt.Println(mockup)
//fmt.Println(mockup)
emptyString := mockup
return emptyString
}
......@@ -364,7 +364,7 @@ func UIDMaker(typeS string) string {
thedog := rand.Intn(len(nouns))
uniqueFied := fmt.Sprint(uniquefier, hostname, username, adjectives[ind], adjectives[indie], nouns[thedog])
fmt.Println(uniqueFied)
//fmt.Println(uniqueFied)
if typeS == "post" {
numPosts, err := ioutil.ReadDir("tests/posts/")
......@@ -391,6 +391,7 @@ func main() {
if err != nil {
fmt.Println("No borks!")
}
fmt.Println("DIRBORKS:", dirBorks)
//room init
xvar := 17
yvar := 17
......@@ -398,8 +399,8 @@ func main() {
room = flour.Oven(room, "X", xvar, yvar)
room[122].Label = "player"
//end room init
numBorks := len(dirBorks)
numStringBorks := strconv.Itoa(numBorks)
//numBorks := len(dirBorks)
//numStringBorks := strconv.Itoa(numBorks)
fmt.Println("\033[38;2;20;20;255mInitializing actor accounts\033[0m")
currentActors, err := ioutil.ReadDir("tests/users/")
if err != nil {
......@@ -410,9 +411,9 @@ func main() {
initializedActors = append(initializedActors, initActors("tests/users/"+currentActors[i].Name()))
}
fmt.Println(initializedActors)
//fmt.Println(initializedActors)
fmt.Println("\033[48;2;255;20;20mInitialization Complete\033[0m")
fmt.Println(numStringBorks)
//fmt.Println(numStringBorks)
// fmt.Println("\033[38;2;0;255;0mThe most recent post is " + numBorks + "\033[0m")
for {
mux := http.NewServeMux()
......@@ -431,7 +432,7 @@ func main() {
if err != nil {
fmt.Println("Error reading post.")
}
fmt.Println(string(signedContent))
//fmt.Println(string(signedContent))
fmt.Println("Signing complete.")
w.Write(signedContent)
}
......@@ -503,7 +504,7 @@ func main() {
if err != nil {
fmt.Println("Error reading file")
}
fmt.Println(string(signedContent))
//fmt.Println(string(signedContent))
fmt.Println("Signing complete.")
w.Write(signedContent)
}
......@@ -524,7 +525,7 @@ func main() {
if err != nil {
fmt.Println("Error reading file")
}
fmt.Println(string(signedContent))
//fmt.Println(string(signedContent))
fmt.Println("Signing complete.")
w.Write(signedContent)
}
......@@ -539,7 +540,7 @@ func main() {
target := req.Header.Get("Target")
// signature := req.Header.Get("Authorization")
//signature, err := ioutil.ReadAll(req.Body)
fmt.Println(string(signed))
//fmt.Println(string(signed))
if err != nil {
fmt.Println(err)
}
......@@ -569,7 +570,7 @@ func main() {
target := req.Header.Get("Target")
// signature := req.Header.Get("Authorization")
// signature, err := ioutil.ReadAll(req.Body)
fmt.Println(string(signed))
//fmt.Println(string(signed))
if err != nil {
fmt.Println(err)
}
......@@ -592,10 +593,10 @@ func main() {
// response. These three headers are actually sent in
// the trailer.
fmt.Println("WHER GOING?")
signed := req.Header.Get("Signature")
//signed := req.Header.Get("Signature")
// signature := req.Header.Get("Authorization")
// signature, err := ioutil.ReadAll(req.Body)
fmt.Println(string(signed))
//fmt.Println(string(signed))
// if err != nil {
// fmt.Println(err)
// }
......@@ -746,10 +747,10 @@ func main() {
// response. These three headers are actually sent in
// the trailer.
fmt.Println("I HEAR BORK")
signed := req.Header.Get("Signature")
//signed := req.Header.Get("Signature")
// //signature := req.Header.Get("Authorization")
// signature, err := ioutil.ReadAll(req.Body)
fmt.Println(string(signed))
//fmt.Println(string(signed))
// if err != nil {
// fmt.Println(err)
// }
......@@ -792,7 +793,7 @@ func main() {
if err != nil {
fmt.Println("Error reading file")
}
fmt.Println(string(signedContent))
//fmt.Println(string(signedContent))
fmt.Println("Signing complete.")
w.Write(signedContent)
......@@ -825,6 +826,7 @@ func main() {
defer file.Close()
numBytes, err := file.WriteString(string(signedContent))
if err != nil {
fmt.Println(name)
fmt.Println("ERROR CREATING FILE")
panic(err)
}else {
......@@ -873,8 +875,8 @@ func main() {
fmt.Println("Error reading reponse.")
fmt.Println(err)
}
beachBall := object
fmt.Println(beachBall)
//beachBall := object
//fmt.Println(beachBall)
UID := UIDMaker("post")
validate(UID, object)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment