Re: [go-nuts] Re: Appengine and main package

2017-11-02 Thread Sankar P
Thanks.

2017-11-02 10:06 GMT+05:30 Chris Broadfoot :

> You can use a main package.
>
> package main
>
> import (
>"net/http"
>"google.golang.org/appengine"
> )
>
> func main() {
>http.HandleFunc(...)
>appengine.Main()
> }
>
>
> On Wednesday, November 1, 2017 at 12:04:14 AM UTC-7, Tamás Gulácsi wrote:
>>
>> Just move your main to a realmain pkg, and have a shim that just calls it.
>> I used to create a "func Main() error" and a main which calls this, and
>> log,Fatal on error.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/golang-nuts/Vce6234vk8E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sankar P
http://psankar.blogspot.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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Appengine and main package

2017-11-01 Thread Chris Broadfoot
You can use a main package.

package main

import (
   "net/http"
   "google.golang.org/appengine"
)

func main() {
   http.HandleFunc(...)
   appengine.Main()
}


On Wednesday, November 1, 2017 at 12:04:14 AM UTC-7, Tamás Gulácsi wrote:
>
> Just move your main to a realmain pkg, and have a shim that just calls it.
> I used to create a "func Main() error" and a main which calls this, and 
> log,Fatal on error.

-- 
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.
For more options, visit https://groups.google.com/d/optout.