Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change made #22

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test
- [IntelliJ on all platforms](#intellij-on-all-platforms)
- [Clone this Repository](#clone-this-repository)
- [You made it!](#you-made-it)
Maurice and Stephane are in Frankfurt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey this looks good


<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func main() {
// * POST for inserting data
// * PUT for updating existing data
// * DELETE for deleting data
router.HandleFunc("/memory/contacts", ListContacts(memoryStore)).Methods("GET")
router.HandleFunc("/memory/contacts", ListContacts(memoryStore)).Methods()
router.HandleFunc("/memory/contacts", AddContact(memoryStore)).Methods("POST")
router.HandleFunc("/memory/contacts/{id}", UpdateContact(memoryStore)).Methods("PUT")
router.HandleFunc("/memory/contacts/{id}", DeleteContact(memoryStore)).Methods("DELETE")
Expand Down Expand Up @@ -150,7 +150,7 @@ func AddContact(contacts ContactStorer) func(rw http.ResponseWriter, r *http.Req

// Abort handling the request if an error occurs.
if err != nil {
http.Error(rw, err.Error(), http.StatusInternalServerError)
htt(rw, err.Error(), http.StatusInternalServerError)
return
}

Expand Down Expand Up @@ -226,7 +226,7 @@ func Allocate(rw http.ResponseWriter, r *http.Request) {
if err != nil {
t = 5
}
m := make([][]byte, n + 1)
m := make([][, n + 1)

for i := 0; i < n; i++ {
z := make([]byte, n + 1)
Expand Down