Re: [go-nuts] Converting escaped unicode to utf8

2016-12-25 Thread JohnGB
It *should* have a JSON body, but in this particular case I can't be sure that it will, as I'm trying to log requests when there are errors, which are quite often errors in the request. So although in some cases it is decoded later in the handler chain, I need to be able to log the string in a

Re: [go-nuts] Re: Why the memory is not free by GC?

2016-12-25 Thread Dave Cheney
I recommend checking the issue tracker and if there is no open issue for this, opening one. -- 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

[go-nuts] Re: install go compiler without sudo right

2016-12-25 Thread Dave Cheney
If it is is possible can you always post the complete failure log, including the commands you entered. My guess is one or more of these things have happened 1. You have one or more existing go installations on your system already 2. You have set GOROOT, you should not set GOROOT when compiling

[go-nuts] Re: install go compiler without sudo right

2016-12-25 Thread tungcheungleong
I was using all.bash, just tried make.bash. It failed for the same reason: ``` /go/src/runtime/os_linux.go:310: undefined: sigtable /go/src/runtime/os_linux.go:311: undefined: sigtable /go/src/runtime/signal1_unix.go:43: undefined: sigtable /go/src/runtime/signal1_unix.go:44: undefined: sigtable /g

[go-nuts] Most efficient way to implement PubSub pattern using channels

2016-12-25 Thread Zeeshan Arif
Maybe it's because you have 1outbound channel per user, is there anyway to have a partitioned channel? -zeesh49 -- 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 g

Re: [go-nuts] Re: Why the memory is not free by GC?

2016-12-25 Thread leogazio
We're already in 2016 and freeosmemory routine still does not work on windows, speccialy Windows Server 2008 R2 64BIT. Anyone knows if there is already a solution for that? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from thi

[go-nuts] Most efficient way to implement PubSub pattern using channels

2016-12-25 Thread zohaibsh
Hey guys, So for a while I have been working on a chat system that is written in Go and it targets itself to run efficiently on low resources systems like Raspberry Pi (under 512MB) and handle hundreds of thousands of connections easily (for really curious people URL is http://beta.raspchat.co

[go-nuts] Re: howto programatically resolve an import path ?

2016-12-25 Thread mhhcbon
awesome. Precisely the material i was missing, thanks! On Sunday, December 25, 2016 at 3:28:06 PM UTC+1, adon...@google.com wrote: > > On Friday, 23 December 2016 14:01:15 UTC-5, mhh...@gmail.com wrote: >> >> Hi, >> >> i m looking for the right way to load and parse an ast.ImportSpec >> referenc

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-25 Thread andrey mirtchovski
here is the diff for reproducing the JNI issue (I sent the previous email without it). my guess is that "context" needs to be resolved to the java side for this to work: $ git diff . diff --git a/example/reverse/reverse/reverse.go b/example/reverse/reverse/reverse.go index c4c3377..4ccf1e7 100644

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-25 Thread andrey mirtchovski
12-25 09:52:45.244 10998 10998 E art : JNI ERROR (app bug): attempt to pass an instance of go.Seq$Ref as argument 1 to void android.app.AlertDialog$Builder.(android.content.Context) go version devel +5bfba30 Sat Dec 24 22:37:11 2016 + darwin/amd64 my gomobile version is as of last night,

Re: [go-nuts] Any Tool for Managing 3rd Party Library?

2016-12-25 Thread Jan Mercl
On Sun, Dec 25, 2016 at 4:12 PM Henry wrote: > I am wondering whether there is any tool that can list any broken 3rd party library (eg. moved source url, etc.) that were installed using "go get"? $ go get -u # perhaps -- -j -- You received this message because you are subscribed to the Goo

[go-nuts] Any Tool for Managing 3rd Party Library?

2016-12-25 Thread Henry
Hi, I am wondering whether there is any tool that can list any broken 3rd party library (eg. moved source url, etc.) that were installed using "go get"? Thanks. Henry. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

Re: [go-nuts] Re: generic "CRUD" handlers

2016-12-25 Thread Tong Sun
I saw that and knew that controller (e.g.bottle.go file) won't be re-generated (by default). That's why I'm asking *how to deal with* the situation when it *needs* to be re-generated again, *i.e.*, the round-robin design approach. Anyway, I found the answer myself. https://github.com/goadesign/exa

[go-nuts] Re: howto programatically resolve an import path ?

2016-12-25 Thread adonovan via golang-nuts
On Friday, 23 December 2016 14:01:15 UTC-5, mhh...@gmail.com wrote: > > Hi, > > i m looking for the right way to load and parse an ast.ImportSpec > referenced into an ast.File object. > > Its mostly about the path resolution, I can t find a method like > > parse(baseDir string, pkgPath string)...

[go-nuts] omitempty custom json Marshaller

2016-12-25 Thread Forud A
Hi, I have a struct with custom json.MarshallJSON function. I need to ignore field of this type when the value is null. something like this package main import ( "encoding/json" "fmt" ) type Custom struct { Name string Show bool } type FinalJSON struct { T1 *Custom `json:"field,omitempty"` T

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-25 Thread glenford williams
for me running the following package reverse import ( "Java/android/databinding/DataBindingUtil" "Java/android/os" sapp "Java/android/support/v7/app" rlayout "Java/go/reverse/R/layout" "Java/go/reverse/databinding/ActivityMainBinding" "fmt" ) type MainActivity struct {

[go-nuts] Donating to Go/related causes

2016-12-25 Thread 'Ingo Oeser' via golang-nuts
Sponsor a meetup nearby. Or help them with a venue or catering. Speak on a local conference or meetup about how Go has been key to your success to encourage others to pursue their dreams. Make a workshop for newbies in your area. Happy donating. -- You received this message because you are su

[go-nuts] Re: generic "CRUD" handlers

2016-12-25 Thread Marian Kopriva
Here's the relevant paragraph from the guide you linked to (emphasis mine): Note how goagen generated a main.go for our app as well as a skeleton > controller (bottle.go). These two files are meant to help bootstrap a new > development, *they won’t be re-generated (by default) if already present

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-25 Thread Elias Naur
Hi, Can I persuade you to send a complete example that demonstrates the package name clash problem and one that demonstrates the runtime JNI crash? Thanks. - elias On Saturday, December 24, 2016 at 11:27:56 PM UTC+1, andrey mirtchovski wrote: > > Apologies for the digression. > > >> This su