Re: [go-nuts] SSL socket listener
Thanks. how about the sample of general socket listener with SSL rather than net/http implementation? Regards Dimas Prawira wrote: Here is an example running server with TLS package main import ( "net/http" "log" ) func HelloServer(w http.ResponseWriter,req *http.Request) { w.Header().Set("Content-Type","text/plain") w.Write([]byte("This is an example server.\n")) } func main() { http.HandleFunc("/hello",HelloServer) err := http.ListenAndServeTLS(":443","server.crt","server.key",nil) if err != nil { log.Fatal("ListenAndServe: ",err) } } -- Wesley Peng wesleyp...@aol.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ffdb0882-3e1a-173d-6c3c-91f63d88bbfe%40aol.com.
[go-nuts] SSL socket listener
Hello, How do I program with SSL to make a server listen on specific port which accepts SSL transfer only? Is there any guide for this since I have no experience on SSL socket programming. Thanks. Wesley Peng wesleyp...@aol.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1690752345.1320667.1591168756241%40mail.yahoo.com.
[go-nuts] Is this AMQP 0.9.1 library updated?
Hello, I tried to access RabbitMQ using this AMQP library:https://github.com/streadway/amqp I am not sure if this library get updated following the recent RMQ version.Please suggest, thanks. Wesley Peng wesleyp...@aol.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1077505155.1304617.1588125421267%40mail.yahoo.com.