Commit Graph

14 Commits

Author SHA1 Message Date
Gabriele Santomaggio
e4fee05c96
Use PublishWithContext instad of Publish (#337)
Update the GO tutorials with PublishWithContext instead of Publish

Publish is deprecated.

As context, I used:  `context.WithTimeout(context.Background(), 5*time.Second)`
update the Golang Version to 1.7

Signed-off-by: Gabriele Santomaggio G.santomaggio@gmail.com
2022-09-05 11:34:35 +02:00
Ignacio Taranto
98a3ff7c1f Go: Use log.Panicf instead log.Fatalf
The problem is that log.Fatalf calls os.Exit(1) behind the covers and
defer statements won't be called.
2021-11-18 16:09:36 -03:00
Michael Klishin
52ca462906
Go: switch to rabbitmq/amqp091-go 2021-06-09 14:58:58 +03:00
zy
787b2fd82e go: check error first
Need check error before log out the success message.
2021-01-05 23:30:03 +08:00
JinBeom Hong
11a1b3cae6 fix typo 2018-08-13 13:37:02 +09:00
Hiroaki Nakamura
b877dbd708 Remove reduncant panic after log.Fatalf
Also run gofmt to format code
2016-07-01 00:15:03 +00:00
Giuseppe Privitera
eb4d6f6c44 Revert "Update send.go in tutorial 1 for golang" 2015-09-08 11:59:49 +02:00
AlexandrT
0c605f7a24 Update send.go in tutorial 1 for golang
Go1.5 for linux - need comma after amqp.Publishing
2015-09-07 16:04:10 +03:00
Giuseppe Privitera
f4c08959cd proper go indentation 2015-08-10 11:52:55 +01:00
Giuseppe Privitera
d465702dbd log message sent 2015-08-10 09:50:13 +01:00
Majid Golshadi
863d795158 Update send.go 2015-08-04 12:16:53 +04:30
Pilwon Huh
371fc3b64d Improved, fixed bug, and cleaned up code for Go. 2014-08-18 21:29:50 -04:00
Michael Klishin
fc0dc7f6e4 Refactor error handling 2013-10-17 22:36:03 +04:00
Michael Klishin
f4cd7a7b39 Port tutorial 1 to Go 2013-10-17 01:09:33 +04:00