[go-nuts] Re: Need hints on debugging high memory usage after go 1.11 upgrade

2018-10-09 Thread Houzuo Guo
It turns out to be unrelated to any standard library features, as a trivial program uses ~100MB of virtual memory: https://github.com/golang/go/issues/28114 On Wednesday, 10 October 2018 08:43:50 UTC+3, Houzuo Guo wrote: > > Good day fellow gophers. > > A system program of mine that runs couple

[go-nuts] Need hints on debugging high memory usage after go 1.11 upgrade

2018-10-09 Thread Houzuo Guo
Good day fellow gophers. A system program of mine that runs couple of server daemons in one executable used to consume ~15MB of resident memory and ~15MB of virtual memory, compiled with go 1.10. After upgrading to go 1.11, its resident memory usage remains identical, but virtual memory usage

Re: [go-nuts] Profiling CGO application

2018-10-09 Thread Ian Lance Taylor
On Tue, Oct 9, 2018 at 11:57 AM, Vitaly Isaev wrote: > > This topic has been already discussed here last year, but I would like to > bring it up again, because some details in Go 1.11 could be changed (compared > with Go 1.8). The problem is CPU profiling of Go application that actively > uses

[go-nuts] Re: Importing local package

2018-10-09 Thread D Whelp
Forgive my ignorance, I am working from MacOS but realized my mistake about 20 min after I had submitted the issue I was having. The import wasnt really the issue, it was my usage of the QueryESXi function. I was trying to call it directly but figured out after a few hours of frustration and

[go-nuts] Re: Importing local package

2018-10-09 Thread hackmethod15
Forgive my ignorance, I am working from MacOS but realized my mistake about 20 min after I had submitted the issue I was having. The import wasnt really the issue, it was my usage of the QueryESXi function. I was trying to call it directly but figured out after a few hours of frustration and

Re: [go-nuts] Importing local package

2018-10-09 Thread D Whelp
Yes, my GOPATH and GOROOT are working fine in fact other local imports work as intended. I made a idiotic mistake and wasted so much time googling when I shouldve seen what I was doing wrong. I was calling `QueryESXi()` and adding the import line. I left off the `cli.QueryESXi()`. Once I did

[go-nuts] Re: Get dependency from enterprise repository

2018-10-09 Thread poojaprasanthi1919
On Tuesday, October 9, 2018 at 11:28:05 AM UTC-7, Constantin Konstantinidis wrote: > > jFrog is my working environment. I remain puzzled by the %21 character in > the error message. Is it a typo or is it really included in the error > message ? Could you share the GOPROXY set up that you used

Re: [go-nuts] Getting stack trace from panic before/on recover()

2018-10-09 Thread jclc via golang-nuts
Wow, so it really was that easy... Thanks a lot. On Tuesday, October 9, 2018 at 11:04:24 PM UTC+3, Ian Lance Taylor wrote: > > On Tue, Oct 9, 2018 at 11:49 AM, jclc via golang-nuts > > wrote: > > I'm trying to make a graphical crash window on my program for my users > who > > will not have ter

Re: [go-nuts] Getting stack trace from panic before/on recover()

2018-10-09 Thread Ian Lance Taylor
On Tue, Oct 9, 2018 at 11:49 AM, jclc via golang-nuts wrote: > I'm trying to make a graphical crash window on my program for my users who > will not have terminal access. I can panic with my own custom crash dumps > that include details that I can then handle after recover(), but I can't get > any

[go-nuts] Robotgo v0.60.0 is released, Go desktop automation, refactoring window and example.

2018-10-09 Thread vzvway
Golang Desktop Automation. Control the mouse, keyboard, bitmap, read the screen, Window Handle and global event listener. Robotgo v0.60.0 is released, refactoring window and example. https://github.com/go-vgo/robotgo/releases/tag/0.60.0 -- You received this message because you are subscribed t

[go-nuts] Getting stack trace from panic before/on recover()

2018-10-09 Thread jclc via golang-nuts
I'm trying to make a graphical crash window on my program for my users who will not have terminal access. I can panic with my own custom crash dumps that include details that I can then handle after recover(), but I can't get anything useful from a standard library panic. If the user tells me hi

[go-nuts] Re: Get dependency from enterprise repository

2018-10-09 Thread Constantin Konstantinidis
jFrog is my working environment. I remain puzzled by the %21 character in the error message. Is it a typo or is it really included in the error message ? Could you share the GOPROXY set up that you used ? -- You received this message because you are subscribed to the Google Groups "golang-nuts

Re: [go-nuts] Importing local package

2018-10-09 Thread Justin Israel
On Wed, Oct 10, 2018, 5:49 AM D Whelp wrote: > Hello all, > > Super new to Golang, loving the hell out of it, but I am running into a > small issue. I have a small application that I am working through. I can > import my models using `import ("/dojo/pkg/models")` in main.go just fine. > Now I a

[go-nuts] Re: Importing local package

2018-10-09 Thread Constantin Konstantinidis
I don't see clearly which OS you run on, but "../cli" should work if you run locally. On Tuesday, October 9, 2018 at 6:49:20 PM UTC+2, D Whelp wrote: > > Hello all, > > Super new to Golang, loving the hell out of it, but I am running into a > small issue. I have a small application that I am w

[go-nuts] Importing local package

2018-10-09 Thread D Whelp
Hello all, Super new to Golang, loving the hell out of it, but I am running into a small issue. I have a small application that I am working through. I can import my models using `import ("/dojo/pkg/models")` in main.go just fine. Now I am trying to build a `cli` package and I cannot import

[go-nuts] Re: Get dependency from enterprise repository

2018-10-09 Thread poojaprasanthi1919
Thank you Vladimir Varankin , I dont want to use jfrog-cli. The problem I faced with jfrog-cli is - I can install jfrog-cli, and configure the artifactory using jfrog rt c and successfully go get dependencies to my test. But this approach works better on local machine. When I want to execute the

Re: [go-nuts] Where are the dependencies saved when we use go mod

2018-10-09 Thread poojaprasanthi1919
That was awesome Gary pprasanthi-MBP-A6F84:gomodtry pprasanthi$ go mod download -json { "Path": "github.com/davecgh/go-spew", "Version": "v1.1.1", "Info": "/Users/pprasanthi/go/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.info", "GoMod": "/Users/pprasanthi/go/pkg/mod/cache/downloa

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-09 Thread Michael Jones
Well, I only have myself to blame for the complexity then. ;-) There is no visible difference, but there is an invisible one--the visitor functions are now potentially parallel so they must not access shared variables casually. One choice is to use a channel, one is to use mutual exclusion. On Tu

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-09 Thread Robert Solomon
As the OP, I want to clarify my comment about grokking. I meant that it takes time to understand someone else's code, not about CSP itself. I went through a YouTube series that writes a news aggregator in go using CSP; it took 22 videos to explain the code. I started looking at Mike jones'

[go-nuts] Re: json: cannot unmarshal array into Go struct field data.Members of type main.Members

2018-10-09 Thread Christian Joergensen
data.Members needs to be a slice. You also need to export slug (capitalize it) if you want to decode data into it. Try: type Member struct { Slug string `json:"slug"` } type data struct { Members []Member `json:"members"` } Cheers, Christian -- You received this message because you are sub

[go-nuts] Re: json: cannot unmarshal array into Go struct field data.Members of type main.Members

2018-10-09 Thread Frits van Bommel
Rename your "slug string" to "Slug string" to make it public so the json package can write to it, and make the "Members" field of data a slice: type Member struct { Slug string } type data struct { Members []Member } On Tuesday, October 9, 2018 at 2:46:02 PM UTC+2, pdbw...@gmail.com wrote

Re: [go-nuts] json: cannot unmarshal array into Go struct field data.Members of type main.Members

2018-10-09 Thread Burak Serdar
Members.slug is not exported. It should be Members.Slug, not Members.slug On Tue, Oct 9, 2018 at 6:45 AM wrote: > > > type Members struct { > slug string `json:"slug"` > } > type data struct { > Members Members //`json:"members"` > } > > func main() { > > resp, err := > http.Get("http

[go-nuts] json: cannot unmarshal array into Go struct field data.Members of type main.Members

2018-10-09 Thread pdbw58107
type Members struct { slug string `json:"slug"` } type data struct { Members Members //`json:"members"` } func main() { resp, err := http.Get( "https://gist.githubusercontent.com/DQIJAO/e14c64ea610688e70228a9fb8c649b2c/raw/6cccd444c1ef65411aa3662b112634996b837414/bnk48.json"; )

[go-nuts] Re: Get dependency from enterprise repository

2018-10-09 Thread Vladimir Varankin
Hey there! I don't know much about jfrog, but was curious to delve into the enterprise proxies topic. It seems that you're supposed to use jfrog's own jfrog-cli [1] to work with the artifactory. I believe the CLI simply set a proper value to GOPROXY to URL, that supports gomod proxy protocol AP

Re: [go-nuts] [ANN] astiencoder: an open source video encoder written in GO and based on ffmpeg C bindings

2018-10-09 Thread Asticode
Yeah sorry about the spam :( I forgot the link the first time and wanted to edit the title the second time. Didn't think there were notifications for every creation. Really sorry about that :( Le mardi 9 octobre 2018 10:47:33 UTC+2, Jan Mercl a écrit : > > On Tue, Oct 9, 2018 at 10:31 AM Astic

Re: [go-nuts] [ANN] astiencoder: an open source video encoder written in GO and based on ffmpeg C bindings

2018-10-09 Thread Jan Mercl
On Tue, Oct 9, 2018 at 10:31 AM Asticode wrote: > I'm happy to announce go-astiencoder, an open source video encoder written in GO and based on ffmpeg C bindings: https://github.com/asticode/go-astiencoder Three separate announcements of the same thing in cca 20 minutes. -- -j -- You receiv

[go-nuts] [ANN] astiencoder: an open source video encoder written in GO and based on ffmpeg C bindings

2018-10-09 Thread Asticode
Hey guys, I'm happy to announce go-astiencoder, an open source video encoder written in GO and based on ffmpeg C bindings: https://github.com/asticode/go-astiencoder Its goal is to assemble the full audio/video encoding process in GO for people looking to: - understand how such a process

[go-nuts] [ANN] Open source video encoder written in GO and based on ffmpeg C bindings

2018-10-09 Thread Asticode
Hey guys, I'm happy to announce go-astiencoder, an open source video encoder written in GO and based on ffmpeg C bindings: https://github.com/asticode/go-astiencoder Its goal is to assemble the full audio/video encoding process in GO for people looking to: - understand how such a process

[go-nuts] [ANN] Open source video encoder written in GO and based on ffmpeg C bindings

2018-10-09 Thread Asticode
Hey guys, I'm happy to announce go-astiencoder, an open source video encoder written in GO and based on ffmpeg C bindings. Its goal is to assemble the full audio/video encoding process in GO for people looking to: - understand how such a process work in detail - integrate their video e

[go-nuts] Re: Error Handling Best Practice (error wrapping)

2018-10-09 Thread Henry
Hi, There are two kinds of errors: user-facing error and developer-facing error. User-facing error is an error that is supposed to be relayed back to the end-users. It is usually stripped from sensitive information and is generally more verbose. On the other hand, developer-facing error are in

Re: [go-nuts] Where are the dependencies saved when we use go mod

2018-10-09 Thread gary . willoughby
You can also use the handy command `go mod download -json` to view information about the dependencies and where they are on disk for a module. On Monday, 8 October 2018 22:29:46 UTC+1, ppras...@splunk.com wrote: > > Got it, Thanks Wagner. > I did not set GOPATH since I was using GO111MODULE=on. S