What's the reason for these 2 command to behave differently regarding
producing binaries?
Serious question for additional points: produce a string to search for
./... on the web, in gmail or on github. Afaict ellipsis won't help
here.
thanks!
--
You received this message because you are
(This time reply to list. Sorry Brian.)
On Tue, Feb 6, 2024 at 3:03 PM 'Brian Candler' via golang-nuts
wrote:
>
> > Thanks! In addition to that, It also helps with code with upper limit
> > memory-requirement, which fmt.Sprintf() can't.
>
> If you're processing data from untrusted sources, then
On Tue, Feb 6, 2024 at 12:18 PM 'Brian Candler' via golang-nuts
wrote:
>
> The C functions are mainly there to prevent overrunning already-allocated
> buffers, which isn't an issue with Go.
Thanks! In addition to that, It also helps with code with upper limit
memory-requirement, which
C *nprintf(3) implementations stop the conversion when n is reached.
I couldn't find a similar functionality in the standard library, what
did I miss?
If there isn't any, any idea how to implement that without
reimplementing all format helpers?
thanks!
--
You received this message because you
(golang-...@googlegroups.com is for developing the Go language
(bcc-d), you'll want to use golang-nuts@googlegroups.com, now on cc.)
If I understand correctly, you plan to parse excel files. I haven't
tried these just yet, but maybe search on
https://pkg.go.dev/search?q=xls
best,
fgergo
On 2/8
On 1/29/23, bobj...@gmail.com wrote:
> I'm glad to see this issue getting some discussion. I have 100+ smallish
> utility programs written in Go, and each one consumes about 1.5 MB (precise
>
> average: 1,867,844 bytes); my bin directory contains 100+ copies of the Go
> runtime. Sadly, I mainly
On 1/23/23, Peter Rabbitson wrote:
...
> I guess I will spend some time to learn how to poke around the generated
> assembly tomorrow...
If I understand correctly you are trying to force your model of the
world into the Go memory model. The models are different, so this
won't work.
Please also
In case you're interested in details of github.com/rogpeppe/retry :
https://www.youtube.com/watch?v=yZTEAXdcuH4
On 5/25/22, Tamás Gulácsi wrote:
> I bet on https://pkg.go.dev/github.com/rogpeppe/retry - it allows a simple
>
> for iter := strategy.Start(); iter.Next(ctx.Done()); {
> if err :=
some details: https://github.com/golang/go/issues/48918
On 3/18/22, Endre Simo wrote:
> Now that generics are officially supported, I was checking in the Go source
>
> if there are some generic implementation of utility methods like Abs, Min,
> Max etc, but I couldn't find it other than this
>
If the updated "go/benign-race link" is a canonical url, could you
please share the prefix as well?
( I tried http://go.dev/go/benign-race and some other variations, but
these don't work. Archive.org link is working. )
On 2/10/22, 'Dmitry Vyukov' via golang-nuts
wrote:
> I've recovered it and
On 1/31/22, envee wrote:
> Hi All,
> I understand this issue has been discussed in the past, and I have seen a
> few comments from Ian and Russ Cox about this topic, but I could not arrive
>
> at a conclusion about how I can make the time.Ticker send me ticks at
> atleast close to the Ticker
Sure:
https://go.dev/doc/manage-install#installing-multiple
On 12/15/21, Travis Keep wrote:
> This may be silly question, but is there a way for me to download and play
> with 1.18 while keeping my existing 1.17 installation for production code?
>
> Is there a way to have multiple versions of
On 4/6/21, Volker Dobler wrote:
> Probably you are overthinking it.
> ...
Thank you all for your replies!
I did overthink.
When https://blog.golang.org/using-go-modules [part1-5] were
published, I've read all of them, some parts several times. It helped
with code migrations.
Still my question
Hi,
assuming GO111MODULE=on.
I don't want to publish anything, anywhere.
Beside the main package, I want to put functionality into other new
packages as well.
Could somebody share the workflow to do _only_ that?
Where can I read about the correct incantations?
To organize the source files on
Thank you both, for sharing your thoughts on this!
On 3/30/21, 'Axel Wagner' via golang-nuts wrote:
> Again: I understand what you are asking for and I'm not saying there is no
> benefit.
>
> Personally, I don't feel the benefit is very large and I don't think it's
> worth it. You might very
On Mon, Mar 29, 2021, 17:46 Wojciech S. Czarnecki wrote:
> Dnia 2021-03-29, o godz. 15:17:42
> "'Axel Wagner' via golang-nuts" napisał(a):
>
> > I still don't understand how you think we should provide this
> explanation without solving SAT.
> ...
> > What is "builtconstraint_1" and how is it
On 3/29/21, Axel Wagner wrote:
> On Mon, Mar 29, 2021 at 2:57 PM wrote:
...
> An "explanation" like I described in my 2nd email would be very
>> helpful and that isn't more complex than P. (If it is, please provide
>> a hint.)
>>
>
> I still don't understand how you think we should provide this
Thanks, fully agree on everything.
Please consider this workflow:
1. find package on pkg.go.dev (currently there is no build constraint
specific information listed beside the result, cf. issue #39195)
2. get package (go get, git clone, cp etc.)
3. "build constraints exclude all Go files in ..."
Thanks for thinking about the issue!
I should have asked for something more explicit, probably something like this:
; go build listconstraintexclusions
buildconstraint_1 excludes:
file1.go
file2.go
file3.go
buildconstraint_2 excludes:
file4.go
file5.go
No go files left to build.
;
Iiuc the
Is there some functionality to list each build constraint that is not
satisfied when the result of go get is "build constraints exclude all
Go files in ..."?
go mod why is very helpful when module dependencies are to be explained.
A similar functionality would be helpful and maybe a message to
Thanks to both you and jake!
I remembered something similar to "import path should not be relative
paths". (Otoh the replace directive is not an import path, so I should
have checked before asking this.)
Anyways, thanks again!
On 3/24/21, Amnon wrote:
> You can just tar up your ~/go/pkg/mod
Thanks, that's exactly what I was looking for!
For the next go programmer looking for a solution in similar situation:
on page https://golang.org/ref/mod#vendoring
"... or to ensure that all files used for a build are stored in a
single file tree"
On 3/24/21, Miguel Angel Rivera Notararigo
Sorry I forgot 1 more expectation/boundary condition: I'd like to be
able to tar both go code in the local filesystem and the referenced go
packages in the local filesystem and copy it to a different OS to
different absolute paths?
I believe I can't use replace?
On 3/24/21, fge...@gmail.com
Assuming GO111MODULE=on, if I don't want to publish anything and I
only want to build go code in the local filesystem, referencing only
go packages in the local filesystem.
Can I do that without local version control software and a private module proxy?
After reading most module documentation on
On page https://golang.org/doc/tutorial/getting-started#call :
step 1.3. : visit https://pkg.go.dev/rsc.io/quote#pkg-index
step 1.4. instructs "At the top of this page, note that package quote
is included in the rsc.io/quote module."
How can I "note that package quote is included in the
Sorry, I've lost it at "golang dev space", but I guess there could be
an explicit definition to that new phrase. (Though if that definition
is not used anywhere else, I can't see any value in that either.)
The directories exposed by the environment variables are not there to
be explicitly managed
On 12/9/20, Dumitru Ungureanu wrote:
> I decided to place them all in one place for containment.
Thanks! (Though I believe we can agree to disagree on the value of
this version of containment.)
> I used the names from envvars to get a simple answer to a simple question:
> *where is GOROOT?*, *in
To clarify the go compiler toolchain is a trivial tree. Compared to
most other mainstream languages and compilers, it's not scattered to
different subtrees. I believe quite some effort went into that to stay
that way.
When using the go compiler toolchain some directories are used for
caching
There is no requirement to manage these variables or to know about them,
even if you don't use the installer.
I never use the installer and I've never needed to check on those
environment variables.
(The installation documentation is short and complete, maybe you should
check it out again.)
The
On 12/8/20, Dumitru Ungureanu wrote:
> Paths in symmetry with the environmental
> variables: GOROOT is go/root, GOPATH is go/path, GOBIN is go/bin. GOCACHE is
> go/cache, GOENV is go/env.
> Bonus points: modules in go/modules.
Why do you need to manage them explicitly? When do you need to look
On 12/7/20, Dumitru Ungureanu wrote:
...
> I'm currently using this directory tree for golang.
...
What do you mean when you write "golang"?
Why is https://golang.org/doc/install not good enough for the go compiler?
--
You received this message because you are subscribed to the Google Groups
On 10/20/20, gerritbinnenmars wrote:
> Hello Ian,Thanks for the quick reaction. It seems my request was not
> clear.What I am doing is the other way around: using gccgo to build the "go"
> cmd.So clone the "go" source from github and then go build -compiler gccgo
> ./cmd/goGerrit
Assuming you
On 8/17/20, 'K Richard Pixley' via golang-nuts
wrote:
> On 8/15/20 00:43, fge...@gmail.com wrote:
>> On 8/15/20, Marvin Renich wrote:
>>> * Volker Dobler [200814 14:53]:
On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote:
> Isn't this the default location? I just
On Sun, Aug 16, 2020, 04:42 Marvin Renich wrote:
> * fge...@gmail.com [200815 03:44]:
> > On 8/15/20, Marvin Renich wrote:
> > > * Volker Dobler [200814 14:53]:
> > >> On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote:
> > >> > Isn't this the default location? I just untarred
On 8/15/20, Marvin Renich wrote:
> * Volker Dobler [200814 14:53]:
>> On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote:
>> > Isn't this the default location? I just untarred the distribution...
>>
>> No. There is a reason https://golang.org/doc/install#install
>> states to do
On Fri, Jul 24, 2020, 23:50 Ian Lance Taylor wrote:
> On Fri, Jul 24, 2020 at 2:22 PM wrote:
> >
> > On 7/23/20, Michael Jones wrote:
> > ...
> > > Another delight is the uppercase signal for external.
> > >
> > > Maybe the “how to signal it” aspect of type instantiation could look to
> > >
On 7/23/20, Michael Jones wrote:
...
> Another delight is the uppercase signal for external.
>
> Maybe the “how to signal it” aspect of type instantiation could look to
> these approaches as well—make the automatic understanding so magical that
> the complete specification is unnecessary in most
If you can do that in any other language, similar strategy would work in
similar go programs as well.
(I assume you know you can't do that in the general case. For details see
the halting problem.)
On Fri, Jul 3, 2020, 11:58 wrote:
> Hello,
>
> If we make an application in golang then how to
Google copy on write go and you'll see the details. (The anwser is no.)
Also you might be interested in these:
https://golang.org/doc/faq#pass_by_value
https://golang.org/doc/faq#go_or_golang
(The faq is quite informative.)
cheers
On Tue, Jun 30, 2020, 06:15 刘骏龙 wrote:
> THX
>
> --
> You
don't type 'type'.
go1.15beta1 is a new commands you'll have
in your system after you do 'go get go1.15beta1'.
then you need to do:
kpixley@kpixley-mbp> go1.15beta1 download
if this fails, check you $PATH if it includes the path to go1.15beta1
binary, if not add it to $PATH.
On 6/18/20, 'K
Hi,
is there a plan to be able to use ?import-graph on pkg.go.dev similar
to godoc.org in the future?
(Sorry if I missed any announcement about this.)
thanks,
Gergely Fodemesi
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
Sorry I did not read your response fully. Repeating the matching is just fine.
Thanks again!
On Thu, Nov 14, 2019 at 10:56 AM wrote:
>
> Thanks, I did not realize that Coverage -> Match[n] could be that useful!
> Though the field Match.Name is not a file name I can os.Open().
> How can I
Thanks, I did not realize that Coverage -> Match[n] could be that useful!
Though the field Match.Name is not a file name I can os.Open().
How can I directly access the known license texts?
On Thu, Nov 14, 2019 at 10:42 AM Dan Kortschak wrote:
>
> The licensecheck.Match type holds the start and
Sorry if I was not clear: on walking the file system, that's clear, I
did not intend to talk about that, only about matching and reporting
on matching. The example I gave was just to put in context why I
believe I'd need a different api.
Using the Options field is good enough in the first
func Cover(input []byte, opts Options) (Coverage, bool) in
licensecheck currently reports len(input)/len(one of the licenses) for
each known license. I'd need for all known licenses len(known
license)/len(license reference in input).
I'd like to scan >10 files (possibly a lot more), where
Hi,
"licensecheck classifies license files and heuristically determines
how well they correspond to known open source licenses."
I'd like to identify license references in the file system. If I
understand correctly package licensecheck in it's current form is not
useful to help with this.
If
Hi,
has anybody created a runnable utility - possibly using
github.com/google/licensecheck - to identify licences in a file tree?
thanks,
Gergely Födémesi
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
On Tue, Aug 20, 2019, 03:43 joe mcguckin
wrote:
> I was perusing the NET library web page today.
>
> 1) Are the packages listed in any particular order?
>
> 2) What is the hierarchy? e.g., which functions correspond to the low
> level Unix network calls,
> then there must be some higher
On Thu, Aug 15, 2019, 05:19 sandao wrote:
> In my opinion, the slice which "as" point to, is all allocated on the
> heap in two case . so, I think the mark time should not be so different.
> Can you tell me more details for you answer(when as is allocated on the
> stack, gc has a smaller
On Thu, Aug 15, 2019, 04:07 ARPwedding perrone
wrote:
> I appreciate the guidance! Thank you, Olga Leon - ol...@jbcconnect.com
> - 212 355 3197
>
this list is fine.
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
.On Wed, Aug 14, 2019, 17:56 sandao wrote:
> type A struct {
> a int
> }
>
> func gen() []*A {
> r := make([]*A, 100)
> for i := 0; i < len(r); i++ {
> r[i] = {i}
> }
> return r
> }
>
> //var as []*A = gen()
>
> func main() {
>
The question is rather vague, though after making a few assumption
here are some hopefully useful pointers:
You can compare the different generated code snippets if you use -S
during compilation:
go tool compile -S mytestfile.go
A Quick Guide to Go's Assembler: https://golang.org/doc/asm
The go
On 7/13/19, Nitish Saboo wrote:
> Hi Ian,
>
> Apologies for not being very descriptive with the issue.I will try to be
> more clear from next time.
> Can you please clarify the following that you had mentioned in the previous
> conversation of this email:
>
>> 3)Is it possible that one Go routine
Besides what others already suggested, you'll find the reason in the
Go memory model specification:
https://golang.org/ref/mem
This part is relevant here:
"If the effects of a goroutine must be observed by another goroutine,
use a synchronization mechanism such as a lock or channel
communication
(I forgot in my previous message: the email subject seems to imply
that := or make() was changed since 1.0. No it wasn't.)
This for later reference: new and make and initialization is very easy
to parse in the faq in the spec and in the effective go document:
On Thu, Jun 20, 2019, 18:56 Kevin Chadwick wrote:
> Hi
>
> "https://tour.golang.org/moretypes/13;
>
> "The make function allocates a zeroed array and returns a slice that
> refers to
> that array."
>
> Yet more detailed literature states that make does not zero whilst new
> does.
>
> I gather
On Sat, Jun 15, 2019, 01:35 Abdullah Saleem wrote:
>
> Asking the real question
I'm not sure what detail you are interested in. Geographically? Media?
Can you give an example answer for the same question for any other non
trivial url?
Maybe you are interested in this:
Maybe the detail you are looking for is something like this:
https://blog.golang.org/ismmkeynote
On 6/6/19, ding liu wrote:
> I cann`t find any infomation about "assist garbage collection" with google,
>
> so what`s the purpose of "assist garbage collection"?
>
> --
> You received this message
To share code please use Share on play.golang.org.
For the rest, please no screenshots, plain text is best.
On 6/6/19, Mark Bauermeister wrote:
> Sorry in advance for the somewhat messy code, but this is something I've
> been trying to understand all day and can't quite come up with an
>
On 5/31/19, Nick Keets wrote:
...
> This proposal is very interesting and seems to fit nicely into Go, with
> minimal disruption. And speaking personally, it would cover 99% of my needs
> for generics (I'm not that interested in Min/Max, but writing functions to
> get map keys gets old fast).
While browsing godoc.org for some functionality, I was wondering if
packages using cgo could be excluded from search results, like this:
"Hmm, I was wondering if godoc.org could show me packages with
"examplesearchterm" without cgo."
Did somebody look into implementing something like this
I'm not sure if you are still interested in details or not.
Assuming you ask the question "why" it works differently, one of the
short answers, assuming some basic background knowledge on your part
about compilers and programming language implementation details:
similar, but different
naah, thanks, that's ok.
As soon as I can acquire my own turing machine, I'll insist on 1 number type.
Until then I can live with different number types and some rules for
my finite machines.
On 5/21/19, Michael Jones wrote:
> Oh, Sorry. Have been away from email today. (Focused 100% in VS-code
Could you please clarify which statement your example is meant to
confirm or refute?
On 5/20/19, Michael Jones wrote:
> ahem...
> https://play.golang.org/p/7gcb9Yv7c9e
>
> On Mon, May 20, 2019 at 2:45 AM wrote:
>
>> https://golang.org/ref/spec#Constants
>>
>> "A constant may be given a type
https://golang.org/ref/spec#Constants
"A constant may be given a type explicitly by a constant declaration
or conversion, or implicitly when used in a variable declaration or an
assignment or as an operand in an expression. It is an error if the
constant value cannot be represented as a value of
Similar reason.
You might want to read about slices and arrays in go:
https://golang.org/doc/effective_go.html#slices
This might be helpful as well:
https://gobyexample.com/slices
On 3/8/19, Halbert.Collier Liu wrote:
> Yes, i see,
> thank you so much!
>
> Could you please explain, why
If you haven't studied concurrency before, I can't recommend any tutorials.
To start to learn about concurrency, I'd first recommend _some_
reading and theoretical background.
Concurrency is a complex concept. A "10x" multiplier estimation
compared to e.g. structured programming is probably
(please reply to the list, so others with a similar question can find
this thread.)
I'm sorry, I should have made it clear: for me it's hard to parse the question.
I'll try again: could you please write 1 working example in
play.golang.org with the assumed precedence rules?
If you could share a
Could you please give 2 examples, where the results depend on the
precedence? Maybe on play.golang.org ?
Maybe this also helps: https://golang.org/ref/spec#Operators
On 12/14/18, 伊藤和也 wrote:
> Can I say the precedence of paretheses are lower than unary operators and
> higher than binary
On 10/19/18, Ian Lance Taylor wrote:
> On Fri, Oct 19, 2018 at 1:14 AM, Sam Mortimer
> wrote:
>>
>> On Thursday, October 18, 2018 at 4:28:23 PM UTC-7, Ian Lance Taylor
>> wrote:
>>>
>>> The question is: is anybody actually doing this? Is anybody seriously
>>> thinking about it?
>>
>>
On 10/19/18, Ian Lance Taylor wrote:
> On Fri, Oct 19, 2018 at 1:14 AM, Sam Mortimer
> wrote:
>>
>> On Thursday, October 18, 2018 at 4:28:23 PM UTC-7, Ian Lance Taylor
>> wrote:
>>>
>>> The question is: is anybody actually doing this? Is anybody seriously
>>> thinking about it?
>>
>>
On 10/13/18, Aram Hăvărneanu wrote:
> Window's font rendering is simply wrong. Linux's is very similar to
> macOS's.
Do you mean anything else besides this?
https://www.joelonsoftware.com/2007/06/12/font-smoothing-anti-aliasing-and-sub-pixel-rendering/
Do you maybe have any objectively checkable
I know rog has already asked about this before and I am not sure if
it's feasible or not, but I ask, maybe someone has already thought of
a good resolution:
I'd like to use Go fonts on acme (plan9port linux), but fontsrv(4)'s
antialiased output is rather blurry at least compared to Windows'
Hi,
iirc earlier (years ago?) when on godoc.org I clicked "Package main
imports N packages (graph)" only non-standard dependencies were shown.
Now all dependencies are shown for the currently shown package graph.
When I click "Hide" on the graph page even then standard packges are
shown.
Do I
Hi Jason,
sorry about being slightly OT, though I've seen this on various other
lists recently: "...calling simple html and maybe java script?"
I'm curious, what do you mean when you write "calling html"? Which
mechanism or concept do you mean when "calling html"?
thanks,
Gergely Födémesi
On
Sorry, I'll correct myself:
godoc.org/golang.org/x/build/version
only handles the listed directories.
Though if for example you copy an existing directory to go1.8.3 and
trivially modify main.go
You'll have this:
C:\>go build golang.org/x/build/version/go1.8.3
C:\>go1.8.3 version
go1.8.3: not
You can also 'go get' most go versions and it's quite robust.
https://twitter.com/golang/status/875117556595515392
On Mon, Jun 26, 2017 at 5:17 PM, Igor Maznitsa wrote:
> mvn-golang plugin also allows to automate work with multiple versions of Go
>
> --
> You received this
If I understand correctly
https://groups.google.com/forum/#!forum/golang-nuts is usually the top
search result for "go mailing list" or similar queries.
I suggest adding something like this near the 4 listed rules:
"Please note: this is a google groups interface to a mailing list, you
can't delete
78 matches
Mail list logo