gwp
gwp copied to clipboard
Go Web Programming code repository
Remove template directives from layout. - Code runs now! Template renders.
Bit pattern for the 9th byte should be: ``` 7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |1|0| | | | | | | +-+-+-+-+-+-+-+-+ ``` And _not_ the...
t1 (end time) must be assigned to after we have received converted image from the channel ``` t1 := time.Now() images := map[string]string{ "original": originalStr, "mosaic":
Changing line 26 fixed an error I kept getting panic: runtime error: invalid memory address or nil pointer dereference
Chapter_6_Storing_Data/sql_store1/store.go // get all posts func Posts(limit int) (posts []Post, err error) { rows, err := Db.Query("select id, content, author from posts limit $1", limit) if err != nil {...
When run `e:\code\github\gwp\Chapter_7_Creating_Web_Services\web_service>go run server.go` got an error: ``` # command-line-arguments .\server.go:50:15: undefined: retrieve .\server.go:71:12: post.create undefined (type Post has no field or method create) .\server.go:86:15: undefined: retrieve .\server.go:109:15: undefined:...
var Db gorm.DB causing programming errors: cannot assign *gorm.DB to Db (type gorm.DB) in multiple assignment
1.The way getting cookie in logout function can not get the cookie. . 2.Because the way setting cookie in authenticate function did not set the path, and it was automatically...
Hi, On the following line: https://github.com/sausheong/gwp/blob/e25181d4e9ed9bc604b5c2f739c1879197341aa2/Chapter_2_Go_ChitChat/chitchat/data/data.go#L42 The method is named Encrypt instead of Hash. I understand it wouldn't be possible to solve this now, however for future revisions of this...