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
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
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
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
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:
&
.
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
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
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
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
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
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
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
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
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
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
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
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
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
;
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
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
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
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
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
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
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
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
&
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
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
>>
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
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
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
,
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
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 *
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
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
.
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
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/-
*
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
, 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
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,
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.
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
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
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
.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
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
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
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
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
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
*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
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
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
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()
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
80 matches
Mail list logo