Re: [go-nuts] `golang.org/x/tools/go/packages: unexpected new packages during load` when upgrading to 1.24.1

2025-03-07 Thread 'Jim Idle' via golang-nuts
updated goes and made sure that it is either getting the correct version of Go from your go.mod files or that you have not overridden that with the environment variable that does so? Jim > On Mar 7, 2025, at 07:19, Samuel Littley wrote: > > I've been working on upgrading my

Re: [go-nuts] Looking for a SQLite statement parser

2024-11-26 Thread 'Jim Idle' via golang-nuts
like before changing an existing grammar... [EDIT] - I see that Mike has worked on the sqlite grammar, so you may well have a good starting point there, Jim > On Nov 25, 2024, at 21:30, Julian Peterson wrote: > > Hi, > > For lexer/parser generation, I've used ant

Re: [go-nuts] net/http: no Client API to close server connection based on Response #21978

2024-04-04 Thread Jim Minter
API client, etc.) but others' mileage may vary. A potentially useful hack but not a general purpose kind of thing. Thanks again for the discussion! Jim On Wed, 3 Apr 2024 at 21:21, Robert Engels wrote: > Happy that it sparked an idea. I also don’t think Eli’s concern is valid. &g

Re: [go-nuts] net/http: no Client API to close server connection based on Response #21978

2024-04-03 Thread Jim Minter
Yes, I agree, I think this approach makes sense (and should have been obvious to me as something to try...). It could be implementable as a wrapper transport too. I'll try it out and reply back here if it doesn't work. Thank-you! Jim On Wed, 3 Apr 2024 at 12:46, Robert Engels wrot

Re: [go-nuts] net/http: no Client API to close server connection based on Response #21978

2024-04-02 Thread Jim Minter
That's possible, but the rate of occurrence of the issue is low (but painful when it happens), and the costs of starting a new TLS connection for every HTTP request are significant. I'm looking for a better way. Jim On Tuesday 2 April 2024 at 15:01:30 UTC-6 Sean Liao wrote: &

[go-nuts] net/http: no Client API to close server connection based on Response #21978

2024-04-02 Thread Jim Minter
. I'm not sure how else this could be done. Does anyone have any thoughts? Many thanks for the help, Jim -- 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, sen

Re: [go-nuts] How to have panic messages show in a PowerShell console

2024-02-28 Thread 'Jim Idle' via golang-nuts
You should upgrade your Go installation to the latest version and retry. Go 1.6.3, if that is not a typo is very old. Jim On Feb 28 2024, at 11:35 am, Thom BENTLEY wrote: > Hi All, > > OS: Windows 10 > GoLang: go1.6.3 windows/386 > > I am trying to have a go executable run a

Re: [go-nuts] Re: Weird error when trying to fetch a module.

2023-09-15 Thread 'Jim Idle' via golang-nuts
The go.mod at the root was one thing that might work, but it will cause the entire repo to be pulled in so the tag will still have to be sec/go/ etc. On Fri, Sep 15, 2023 at 15:15 Brian Candler wrote: > > Keep your go source at the root of the repo and tag that > > Or would it be OK just to put

Re: [go-nuts] Re: Parsing difficult JSON

2023-09-14 Thread 'Jim Idle' via golang-nuts
You can also unmarshal in stages to Raw and then unmarshal the next piece based on what you have so far. I presume that you cannot change the format? On Fri, Sep 15, 2023 at 01:05 Tobias Klausmann wrote: > Hi! > > On Thu, 14 Sep 2023, Brian Candler wrote: > > Could you just unmarshal it to a map

Re: [go-nuts] Re: Weird error when trying to fetch a module.

2023-09-14 Thread 'Jim Idle' via golang-nuts
It’s an absolute nightmare to publish modules from subdirectories. I gave up for ANTLR and created a new repo with the source code in the root directory. But the art is that you need to create a tag named with the subdirectory. I was able to make that work until we needed a v{n} tag. Which as far

Re: [go-nuts] Slog and error tracing

2023-08-10 Thread 'Jim Idle' via golang-nuts
You are logging the same error many times and then trying to solve that in the logs. Try this: Only log the error where it is handled, otherwise wrap it and return it without logging. At some point, you will log it as either an error if there is nothing you can do about it, or a warning if someho

Re: [go-nuts] go package dating back to 2009

2023-07-26 Thread 'Jim Idle' via golang-nuts
Decred is a project that was originally put together by someone who never claimed the moniker used by the originator. I suggest that 'Bravo Moua' is trying to claim authorship. HOwever, it is clear that I am Spartacus. https://thedecreddigest.wordpress.com/2017/06/10/decred-where-did-it-all-begi

Re: [go-nuts] [net.mail] ReadMessage returns nil, io.EOF when email w/o body.

2023-07-18 Thread 'Jim Idle' via golang-nuts
If you are doing any serious email work, you might find that the enmime module is useful. https://github.com/jhillyerd/enmime And perhaps this: https://github.com/gatherstars-com/jwz Jim On Wed, Jul 19, 2023 at 9:07 AM Karan Gupta wrote: > That is correct. It is the same issue. > Than

Re: [go-nuts] [generics] instantiation of structs within generic functions

2023-06-08 Thread Jim Minter
On Thursday, 8 June 2023 at 22:23:51 UTC-6 Ian Lance Taylor wrote: On Thu, Jun 8, 2023 at 8:59 PM Jim Minter wrote: > > I'm rather confused by instantiation of structs in generic functions. I happen to be using go protobufs. Unlike with `json.Unmarshal`, `proto.Unmarshal` expects t

[go-nuts] [generics] instantiation of structs within generic functions

2023-06-08 Thread Jim Minter
y in one line rather than spreading [T, P] and [Foo, *Foo] over the codebase. I couldn't find any conversation about this issue elsewhere. I'd be very much interested in any feedback on this topic. Many thanks! Jim -- You received this message because you are subscribed to the Google G

Re: [go-nuts] Go routines consuming memory

2023-06-06 Thread 'Jim Idle' via golang-nuts
gt; And the use of ChatGPT to create some of the examples caused an eye-roll > so strong I was surprised it didn't physically hurt. > > On Tue, Jun 6, 2023 at 8:29 PM 'Jim Idle' via golang-nuts < > golang-nuts@googlegroups.com> wrote: > >> This benchmark is w

Re: [go-nuts] Go routines consuming memory

2023-06-06 Thread &#x27;Jim Idle' via golang-nuts
This benchmark is worthless for all languages used. - Each Go routine will be given a 2K stack. - Go routines are managed by Go, threads by the operating system. - C# uses a thread pool. - There's a lot wrong with this article, not just with things being claimed about Go. - Bench

Re: [go-nuts] go mod download fails on docker for 1.20 (but not for 1.18)

2023-05-21 Thread &#x27;Jim Idle' via golang-nuts
My guess is that IPV6 is disabled in your containers. If you use docker run -it xxx yyy -c "ip -6 addr show dev eth0; ip -6 route show" Then you can find out if that is the case. On Mon, May 22, 2023 at 8:29 AM Joao Miguel Ferreira < joao.miguel.c.ferre...@gmail.com> wrote: > Hello all, > > My

Re: [go-nuts] Avoid forcing my module users' to carry dependencies from code that live under the same repo just as examples/ debugging purposes.

2023-04-15 Thread Jim Idle
; golang-nuts@googlegroups.com> wrote: > On Fri, 2023-04-14 at 14:01 +0800, Jim Idle wrote: > > You might start with this repo: > > > > https://github.com/golang-standards/project-layout > > > > This is not an 'official' standard, though it does encapsula

Re: [go-nuts] Avoid forcing my module users' to carry dependencies from code that live under the same repo just as examples/ debugging purposes.

2023-04-13 Thread Jim Idle
to store your module code as it makes the import path quite strange. But for a main you can look at the cmd directory or the internal directory. You will not go too far wrong by following this guide. Jim On Fri, Apr 14, 2023 at 10:27 AM Pablo Caballero wrote: > I made a very simple module (th

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-23 Thread &#x27;Jim Smart' via golang-nuts
Ok, cool, thanks — that was what I asked in my OP :) > Is this possible at all with the stdlib http.Client? Perhaps with an io.Pipe > as the request body? /J -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and st

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-22 Thread &#x27;Jim Smart' via golang-nuts
The issue here, isn’t that I am uploading a big file — that’s easy. As I said in my initial post: > The use case here is that I'm wishing to send very large UPDATE/INSERT > queries/commands to an HTTP endpoint, and the body content of those > queries/commands is actually generated from a databa

[go-nuts] HTTP client - streaming POST body?

2023-03-06 Thread &#x27;Jim Smart' via golang-nuts
own client of sorts, are there any parts of the existing http package that I should be making use of? Any tips / pointers / info greatly appreciated. Thanks, /Jim -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: Correctly tagging a module in a subdirectory of a Github repo

2023-03-03 Thread Jim Idle
s" Am I on the right path? Sorry to speculate here on the group, but I cannot just go start messing around on the master branch and testing it out, or I would have done so. Jim On Saturday, March 4, 2023 at 12:09:48 PM UTC+8 Jim Idle wrote: > For historic reasons, which are too diffi

[go-nuts] Correctly tagging a module in a subdirectory of a Github repo

2023-03-03 Thread Jim Idle
ntime/Go/antlr/v4@v4.12.0: invalid version: unknown revision runtime/Go/antlr/v4.12.0 So, I am wondering if there are any devops guys on here (I am a wizened old coder, used to having devops guys to ask ;), that no how to do this correctly? Any pointers appreciated. Hopefully I am just misunderstan

Re: [go-nuts] Creating and Linking to Shared Library Version of Go Runtime? (with possible solution)

2023-01-30 Thread Jim Idle
executable. Jim On Tue, Jan 31, 2023 at 04:56 jlfo...@berkeley.edu wrote: > I'm the original poster. I've looked into this more and I might have an > explanation for > what's going on. > > Just for yuks, I started with perhaps the simplest Go program, which I &

[go-nuts] Re: please add ability to set custom 404 notFoundHandler for http.FileServer

2023-01-13 Thread Jim Fisk
func main() { fs := FileServerWith404(http.Dir("my_static_files")) http.Handle("/", http.StripPrefix("/", fs)) http.ListenAndServe(":3000") } func FileServerWith404(root http.FileSystem) http.Handler { fs := http.FileServer(root) return http.HandlerFunc(func(w http.ResponseWrit

Re: [go-nuts] Re: Changes to x509 in Go 1.18

2022-03-28 Thread Jim Idle
considered > valid that go1.18 does not? If so, can you file an issue at > https://github.com/golang/go/issues for investigation? > > On Thursday, March 24, 2022 at 2:10:10 AM UTC-4 Jim Idle wrote: > >> Having just upgraded to 1.18, I find that quite a few encrypted >>

Re: [go-nuts] Changes to x509 in Go 1.18

2022-03-28 Thread Jim Idle
are issued by AWS, for AWS. So now, I will have to ask AWS if they can do anything about it. But I can’t see them re-issuing certificates for all their myriad services, overnight. Jim PS: I quote the ticket you raised, in case it is useful to others: https://github.com/golang/go/issues/51991

[go-nuts] Changes to x509 in Go 1.18

2022-03-23 Thread Jim Idle
appreciated, as well as any insight into the reason for change. Jim -- 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...@googlegrou

[go-nuts] JWZ Email Threading algorithm now available

2021-08-11 Thread Jim Idle
with custom visitor function - Example program to parse emails using Enmime, thread them, sort them, then use tview to display a rudimentary tree view in the console Cheers, Jim PS: Ignore the "go report: F" badge. It is actually A+, but the go report site is down at the momen

Re: [go-nuts] Re: Email threading package?

2021-08-10 Thread Jim Idle
, Jim On Sat, Aug 7, 2021 at 1:40 PM 'Sebastien Binet' via golang-nuts < golang-nuts@googlegroups.com> wrote: > There's that: > > https://git.sr.ht/~emersion/go-emailthreads > > (Quickly scanning the sources, it seems it "just" performs a topological

Re: [go-nuts] doubts

2021-07-12 Thread Jim Idle
If you are just starting out, I would use Iris rather than gin-gonic. You can then borrow from the many examples for that framework: https://github.com/iris-contrib/examples On Sun, Jul 11, 2021 at 1:38 AM Sree lekshmi MG wrote: > hey all i am the beginner in golang ,and now i want to slove *

Re: [go-nuts] Fwd: protoc-gen-go and go modules

2021-05-12 Thread Jim Idle
Create a separate module that contains only the .proto files and use the generate directive. You can then version that module and share it. If your client is some other language, you can generate Its code from the same repo at the same version using your CI. For instance generate a pip wheel as wel

[go-nuts] Re: [ANN] peanut - write tagged structs to disk, in a variety of formats

2021-04-20 Thread Jim Smart
20, 2021 at 9:49:04 PM UTC+1 Jim Smart wrote: > Hi there fellow Go Nuts and Gophers, > > Whilst working on a project not long back, I created a library to easily > write tagged structs to disk, in a variety of output formats. > > https://github.com/jimsmart/peanut > > Each w

[go-nuts] [ANN] peanut - write tagged structs to disk, in a variety of formats

2021-04-20 Thread Jim Smart
. It's also handy if one wishes to e.g. output an Excel file report for management, summarising stats and metadata, at the end of a running task (aside from other exported data). — Maybe this is useful to someone here? Regards, /Jim -- You received this message because you are subscribed t

Re: [go-nuts] Re: error in testcode

2021-03-29 Thread Dr. Lincy Jim
tusCancelled { t.Error("expecting status of bookinglisting to be active") } bl.provisionHistory(tt.args.b) }) } } now i am getting ok in the terminal is this all that is required from writing If b1.status test code Thanks and Regards/- *

[go-nuts] error in testcode

2021-03-28 Thread Dr. Lincy Jim
Hi all, I have included the following lines of code if b.ConsentProvided { var t string if bl.Status != StatusExpired && bl.Status != StatusCancelled { t = fmt.Sprintf("Consent to share information by %s", bl.RequestedBy) //lchangetest1 if len(bl.Requested

Re: [go-nuts] upgrade golang to 1.1.5 in vscode not showing

2021-03-25 Thread Dr. Lincy Jim
, March 25, 2021 at 3:41:41 PM UTC+11 Kurtis Rader wrote: > On Wed, Mar 24, 2021 at 9:16 PM Dr. Lincy Jim wrote: > >> Yes I am using Go in WSL(Sorry I forgot to mention it) >> go 1.13 version is in Networks >> \\wsl$\Ubuntu\home\lincy\go >> >> but the 1.15 ver

Re: [go-nuts] upgrade golang to 1.1.5 in vscode not showing

2021-03-24 Thread Dr. Lincy Jim
obably have no effect. What does `which -a go` output? It seems > likely that you have more than one installation of the Go toolchain with > the 1.13 version being some place other than /usr/local/go/bin. > > On Wed, Mar 24, 2021 at 8:26 PM Dr. Lincy Jim wrote: > >> Hi,

[go-nuts] upgrade golang to 1.1.5 in vscode not showing

2021-03-24 Thread Dr. Lincy Jim
Hi, My os is windows 10 on which i have installed golang1.16 andd the version of golang on my vscode is1.13 but since I am using my laptop for work ,i have been asked to upgrade from 1.13 to 1.15 I did the following steps in terminal of vscode-ubuntu $ sudo wget https://golang.org/dl/go1.15.5.

Re: [go-nuts] Go Create

2021-01-12 Thread Jim Ancona
good API. I use replace to get that to work. But I think that newcomers to the language are unlikely to run into that case either. Jim On Tue, Jan 12, 2021 at 9:26 AM 'Axel Wagner' via golang-nuts < golang-nuts@googlegroups.com> wrote: > On Tue, Jan 12, 2021 at 2:49 PM Kevi

Re: [go-nuts] Go modules replace statements referencing legacy codebases

2020-11-07 Thread Jim Minter
x27;m trying to work out the least worst way of working around this sort of thing as a lowly package importer. Cheers, Jim -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai

[go-nuts] Re: Go modules replace statements referencing legacy codebases

2020-11-06 Thread Jim Minter
Sadly not. Doing this doesn't cause an error, but it also doesn't change the relevant replace directive in the go.mod file. Jim -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

[go-nuts] Go modules replace statements referencing legacy codebases

2020-11-06 Thread Jim Minter
.org/github.com/foo/bar1/@v/baz.info | jq -r .Version) ...etc... go get -u ./... I'm wondering: is there a better way? Should there be? Many thanks! Jim Minter -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] [generics] where to find predefined constraint aggregations?

2020-06-24 Thread 'Yongjian (Jim) Xu' via golang-nuts
On Wednesday, June 24, 2020 at 3:55:07 PM UTC-7 Ian Lance Taylor wrote: > On Wed, Jun 24, 2020 at 3:47 PM i3dmaster wrote: > > > > On Wednesday, June 24, 2020 at 3:02:43 PM UTC-7, Ian Lance Taylor wrote: > >> > >> The current generics design draft doesn't support the kind of > >> constrain

[go-nuts] Re: [ANN] grobotstxt - a Go port of Google's robots.txt parser and matcher

2020-04-26 Thread Jim Smart
ver have to patch the code based upon changes in the original project. I've always found that easier when maintaining ported code. Cheers, /Jim -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Code generation with LLVM bindings

2020-04-01 Thread Jim Idle
n the LLVM group and can ask there if further searching does not give me the answer. Cheers, Jim -- 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 golan

[go-nuts] Re: odd benchmark results for time.Now() call inside vs outside mutex

2020-02-24 Thread Jim Robinson
That's interesting! My numbers earlier were from an AMD chip (2990WX) on Linux 5.3.11. On an older Intel chip (i7-4960HQ) on macOS 10.15.3 I still see small a difference but it's much smaller. $ go test -bench . goos: darwin goarch: amd64 BenchmarkStateSet1-82737468 441 ns/op

[go-nuts] odd benchmark results for time.Now() call inside vs outside mutex

2020-02-24 Thread Jim Robinson
of the numbers being small enough that it's hard to reliabily measure them, but I'm struck how much slower Set1 is than Set2/Set3, apparently due to whether or not the time.Now().Unix() call is made within the lock? Why would that be? Jim -- You received this message because you are

Re: [go-nuts] Proposal: provide runtime sigprocmask api to block some signal for go runtime

2019-08-14 Thread &#x27;Jim Idle' via golang-nuts
*Note that you must not use sigprocmask in multi-threaded processes, because each thread has its own signal mask and there is no single process signal mask. According to POSIX, the behavior of sigprocmask in a multi-threaded process is “unspecified”. * There is a lot more to signal handling than s

Re: [go-nuts] I know you cannot kill a goroutine, but ...

2019-08-12 Thread &#x27;Jim Idle' via golang-nuts
em, if you are trying to provide a complete copy, is reproducing the query language and conversion processor. with all their quirks and strangeness. The compiler is easy compared to that :) Jim On Sat, Aug 10, 2019 at 2:34 AM wrote: > Background: > UniVerse is a Pick model, multivalue d

Re: [go-nuts] Do Any Editors Support Customisable Code collapsing?

2019-07-18 Thread Jim Robinson
Is it named try? :P On Wednesday, July 17, 2019 at 8:37:53 PM UTC-7, Michael Jones wrote: > > There is a special “collapse if err != nil blocks plugin for VS code. > > On Wed, Jul 17, 2019 at 5:37 PM > wrote: > >> Context: >> 1. Golang can be very verbose, for example checking if err != nil afte

Re: [go-nuts] Does your Windows app rely on os.Rename() or .Remove() ?

2019-07-03 Thread Jim Ancona
On Wed, Jul 3, 2019 at 1:09 PM Liam wrote: > [Sorry to keep re-posting this; I'm keeping it visible for infrequent > readers] > I'm a frequent reader and I've now seen it four times. IMHO, that's enough. Jim > > Microsoft recommends changing syscall.Open()

Re: [go-nuts] Go Module Mirror and Checksum Database in Beta!

2019-05-31 Thread Jim Ancona
On Thu, May 30, 2019 at 5:14 PM Katie Hockman wrote: > Our privacy policy explains how we collect and use your information. The > privacy policy for all of these services is proxy.golang.org/privacy. > I tried visiting that page, which redirected to https://policies.google.com/privacy Unfortunat

Re: [go-nuts] Pointer based API and constants literals, how to best handle it?

2019-04-18 Thread Jim Ancona
Is your Cognito provider open source? I might have a use for that/ Jim On Wed, Apr 17, 2019 at 3:55 PM whitehexagon via golang-nuts < golang-nuts@googlegroups.com> wrote: > Thanks Jim, and for the sympathy :) I'm almost tempted to use the REST > API and bypass the SDK... I al

Re: [go-nuts] Pointer based API and constants literals, how to best handle it?

2019-04-17 Thread Jim Ancona
Having used the AWS SDK, I feel your pain. They do have built-in helper methods, e.g. https://docs.aws.amazon.com/sdk-for-go/api/aws/#String, so at least you don't have to define your own. Jim On Wed, Apr 17, 2019 at 2:22 PM whitehexagon via golang-nuts < golang-nuts@googlegroups.co

Re: [go-nuts] Is Go a single pass compiler?

2019-02-28 Thread Jim Ancona
The first computer I ever programmed[1] had a Fortran compiler that stored its intermediate representation on paper tape. As you might imagine, the number of passes affected compilation speed a lot. I don't do compilers, but I suspect that other bottlenecks matter much more today. Ji

Re: [go-nuts] Issue with creating file on aws lambda

2018-10-16 Thread Jim Ancona
ace: https://docs.aws.amazon.com/lambda/latest/dg/limits.html Jim On Tue, Oct 16, 2018 at 3:46 PM AE wrote: > Hello, > > I am trying to make function which will down file fro aws s3 and do some > image resizing. I am having issue with os.Create, when I run locally on ec2 > machine it works fine

Re: [go-nuts] Re: How to setup your development environment using Go modules

2018-09-02 Thread Jim
I would suggest that developers get used to using one or more separate branch for releases. Periodically, master will be merged into these branches as part of the release process. It's likely that the source for your package (including go.mod) won't be the only thing that's different between th

Re: [go-nuts] Local cache of dependencies

2018-08-23 Thread Jim Ancona
I believe Athens (https://github.com/gomods/athens) is meant to address this use case in the Go modules world. Jim On Wed, Aug 22, 2018 at 7:51 PM Conor Hackett wrote: > Thanks Sam, > > I'll have a look out of curiosity but I am very reluctant to > introduce/recommend Git sub

[go-nuts] Re: How to refactor out this function

2018-08-08 Thread Jim Bishopp
HelloSender can SendHello(). Sometimes I find better ways of naming things while adding comments, because the act of describing what something is and does surfaces name-smells. HelloSender can HelloSend(). wat? HelloSend is a polite thing to say when you finally meet Send. io.RuneReader wi

[go-nuts] what is the binary code share mechanism of golang ?

2018-05-04 Thread Jim Yin
Right now, go still import 3rd party libraries by source code. It is too foolish. Java share libraries by jar files, c++ share libraries by dll or so files. Even php has a phar file format. go need a binary format file share libraries. Share libraries by source code is acceptable, but should not do

[go-nuts] it's hard to reply to group from gmail, by default

2018-05-04 Thread Jim Mitchell
  this is how it originally worked.  I have an old group setup years ago and that is the way it goes.   I spent an entire day with our new group and checked every setting to the old group and everything is the same except reply just goes to the poster.   Do the google group admins not understan

[go-nuts] New identifiers and selectors in short variable declarations

2018-01-09 Thread Jim Bishopp
Has there ever been a discussion about allowing new identifiers *and selectors *in short variable declarations? var a struct { x int } b, a.x := 1, 2 ERROR: expected identifier on left side of := -- You received this message because you are subscribed to the Google Groups "golang-nuts" grou

[go-nuts] Pruning unused methods

2017-11-08 Thread Jim Minter
ck doesn't guarantee a working binary at the end, but it provides an upper bound figure that suggests to me that there are potentially substantial and worthwhile savings to be had against larger binary sizes by improving the pruning code if possible. Regards, Jim Minter [1] http

[go-nuts] Re: appengine golang logs

2017-11-03 Thread Jim Cote
In appengine you have to use google.golang.org/appengine/log package. The log calls must have a context passed to it. See https://cloud.google.com/appengine/docs/standard/go/logs/reference. On Friday, November 3, 2017 at 3:58:34 AM UTC-4, Sankar wrote: > > Hi > > > I have a golang file where I

[go-nuts] Re: time.Parse with millisecond separated by colon

2017-10-30 Thread Jim Cote
See https://golang.org/src/time/format.go?s=23626:23672#L249. The standard library is explicitly looking for the period. Your easiest solution would be to just write your own parser. On Monday, October 30, 2017 at 11:20:51 AM UTC-4, Diego Medina wrote: > > Hi, > > I need to parse datetime data

[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use an UnmarshalXML func for the params: // Param is a tag w/ any name type Param struct { Namestring `xml:"-"` Typestring `xml:"type,attr"` MinOccurs int`xml:"minOccurs,attr"` MaxOccurs int`xml:"maxOccurs,attr"` Description string `xm

[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use a custom UnmarshalXML func to handle this. // TopLevel is of course top level type TopLevel struct { Description string `xml:"description"` Rights Rights `xml:"rights"` Method []Method `xml:"method"` } // Method has request type Method struct { Name

Re: [go-nuts] Re: Choosing a framework

2017-09-14 Thread Jim Ancona
On Thu, Sep 14, 2017 at 1:28 AM, Vikram Rawat wrote: > > And there is another project called VECTY. But I mailed them and they told > me it's not documented yet. and it could have bugs. > Vecty (https://github.com/gopherjs/vecty) uses Gopherjs and runs in the browser, so it used for different thi

Re: [go-nuts] goxpath: An XPath 1.0 parser

2017-06-14 Thread Jim Robinson
Since he was the initial author of this thread you're replying to, it does seem reasonable enough to also raise the question here. :) On Wednesday, June 14, 2017 at 7:25:08 AM UTC-7, Lutz Horn wrote: > > Hi, > > Am 14.06.2017 15:57 schrieb seamus via golang-nuts: > > Yes referring to https://gi

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-07 Thread Jim Smart
On Tuesday, June 6, 2017 at 6:22:28 PM UTC+1, Axel Wagner wrote: > > tl;dr: You need a) a publicly routed IP address (either IPv4 or IPv6 is > fine), b) a publicly resolvable domain that points to that IP address and > c) actually point your client (browser) to that domain. > > > I've not done

Re: [go-nuts] Minio cloud storage?

2017-06-05 Thread Jim Robinson
or memory leaking? On Friday, June 2, 2017 at 3:14:53 PM UTC-7, cynexit.x wrote: > > On 06/02/2017 11:36 PM, Jim Robinson wrote: > > Have any of you folks made use of it? > > Indeed I have. So far only on a single node in the non-cluster mode but > it worked very well and

[go-nuts] Minio cloud storage?

2017-06-02 Thread Jim Robinson
The https://www.minio.io/ project looks very interesting. It's an S3 compatible cloud storage server (and associated apis and command line clients), written in Go. Have any of you folks made use of it? Jim -- You received this message because you are subscribed to the Google G

[go-nuts] Re: go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread Jim Robinson
I'd suggest the latter, drain the reader as the last step. Perhaps define a DrainReadCloser that can fully drain the input ReadCloser as part of its closing operation? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

[go-nuts] Re: TAR max file name woes

2017-05-09 Thread Jim Robinson
It looks to me as though the Writer specifically only handles the posix standard tar, which does indeed limit you to 100 characters. It appears as though they've implemented support for reading the GNU format, which I think does not place limits on the name length. See https://github.com/gola

[go-nuts] Re: text/scanner: scan() vs peek()

2016-08-25 Thread Jim Robinson
I'll admit to not understanding how your question and code example mesh, but as far as I can tell Scanner.Peek is working as it is documented in the API, it returns the rune w/o advancing: https://play.golang.org/p/DgzRcWeTRI -- You received this message because you are subscribed to the Googl

Re: [go-nuts] Invalid JSON document from 'go list -json std'

2016-08-23 Thread Jim Ancona
This is a pretty common way of streaming JSON objects. See: https://en.wikipedia.org/wiki/JSON_Streaming But I agree that it's not part of the JSON standard, nor does it seem to be standardized anywhere else. On Mon, Aug 22, 2016 at 9:43 PM, Matt Harden wrote: > The output is not a valid (singl

Re: [go-nuts] Re: [ANN] Pixiecore, simple all-in-one netbooting

2016-08-08 Thread Jim Dennis
David, Thanks for the fast response. I have, since writing that, confirmed that I can boot at least one of these systems (Lenovo ThinkPad T410) using pixiecore (running on my Mac laptop) when both systems are connected to my home router (which, of course, provides DHCP). So that works. I'