Re: [go-nuts] Re: Getting new coverage output format from go test -cover

2025-01-21 Thread Paul Chesnais (papacharlie)
osts/go-combined-unit-integration-code-coverage/ > > 2025년 1월 13일 월요일 오전 10시 13분 15초 UTC+9에 Paul Chesnais (papacharlie)님이 작성: > >> The blog post doesn't provide a way to translate the output of `go test >> -coverprofile ...` (which is the so-called legacy text format) into

Re: [go-nuts] Re: Getting new coverage output format from go test -cover

2025-01-12 Thread Paul Chesnais (papacharlie)
at into the new format? On Saturday, January 11, 2025 at 9:26:40 PM UTC-5 Ian Lance Taylor wrote: > On Sat, Jan 11, 2025 at 10:07 AM Paul Chesnais (papacharlie) > wrote: > > > > Is there another forum I can ask about this? Should this be a feature > request against the go team

[go-nuts] Re: Getting new coverage output format from go test -cover

2025-01-11 Thread Paul Chesnais (papacharlie)
Is there another forum I can ask about this? Should this be a feature request against the go team directly? It seems strange that the formats haven't been converged, or that there's no way to get the new binary format from `go test` Cheers, Paul On Tuesday, December 3, 2024 at 1:26

[go-nuts] Getting new coverage output format from go test -cover

2024-12-03 Thread Paul Chesnais (papacharlie)
thing? Just looking for any insights on this, thanks in advance! Paul -- 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...

Re: [go-nuts] Structured configuration in Go

2022-04-09 Thread Paul Jolly
Out of interest, have you come across CUE? https://cuelang.org/ On Sat, 9 Apr 2022, 15:31 Andrew Pillar, wrote: > An article I wrote about a new configuration library I developed in Go > for working with structured configuration. > > Article: > > https://andrewpillar.com/programming/2022/04/09/

Re: [go-nuts] Mathematical operations - the generics way

2022-03-25 Thread Paul Hankin
I don't know if it's important to you, but your Max[float64] isn't compatible with math.Max in the standard library. For example, Max[float64](NaN, 1) returns 1 rather than NaN. On Tuesday, 22 March 2022 at 16:58:40 UTC+1 esi...@gmail.com wrote: > I found a working version meantime. > > // Max r

Re: [go-nuts] Re: Should dev tools be tracked by go.mod?

2022-01-25 Thread Paul Jolly
I have nothing to add to Sean's excellent reply, other than to mention... > Most of my experience has been with external tooling, and here I prefer using > `go install pkg@version` > over pinning with go.mod as this ensures no interference in dependency > versions between tools, > and can be put

Re: [go-nuts] Convert a go.mod file into checked out dependencies

2022-01-14 Thread Paul Jolly
combination with the GOHACK env var appropriate set for the module in question. Paul On Wed, 12 Jan 2022 at 18:58, Kevin Burke wrote: > > Hi, > Sometimes I just want to inspect third party code for a library, and/or edit > it. > > I'm looking for a tool that will read all o

[go-nuts] Using a local copy of an external package?

2021-08-26 Thread Paul S. R. Chisholm
Hypothetical example: Say I'm writing an application that uses "rsc.io/quote" and I discover a bug in that package that breaks my software. I would of course clone the quote repository, add a test that demonstrates the bug, fix the bug, and submit a patch to the maintainer. After making the fix bu

[go-nuts] Re: Table-driven benchmarks defeat inlining

2021-06-06 Thread Paul S. R. Chisholm
b *testing.B) { > sum = 0 > > for i := 0; i < b.N; i++ { > sum += PopCount(0x1234567890abcdef) > } > } > > As you can see from the objdump, BenchmarkPopCountAlive code is not > eliminated. > > For details, see the popcount.txt attachment. >

[go-nuts] Table-driven benchmarks defeat inlining

2021-05-31 Thread Paul S. R. Chisholm
This is not a serious problem, but it surprised me. (By the way, how can I post a message with code formatting?) I'd like to create table-driven benchmarks: https://blog.golang.org/subtests. To that end, I started with code from *The Go Programming Language*: // PopCount is based on an examp

Re: [go-nuts] Accidentally released a v1.0.0 for my package, how do I go back from there here?

2021-05-01 Thread Paul Jolly
Module retraction gives you a way of "undoing" the release. There is a "Play with Go" guide on the topic: https://play-with-go.dev/retract-module-versions_go116_en/ (the guide can be read without needing to use the interactive terminal) Also the reference documentation for the retract directive:

Re: [go-nuts] Some questions about the memory allocation strategy of channel

2021-03-27 Thread Paul Zhang
I guess I have misunderstood something about the process of the allocation and gc :) Maybe I need to learn from the gc theory first. BTW thanks for your reply. 在2021年3月20日星期六 UTC+8 上午1:20:12 写道: > On Thu, Mar 18, 2021 at 8:36 PM Paul Zhang wrote: > > > > Can I just understa

[go-nuts] Why does the closed status of channel need a uint32?

2021-03-27 Thread Paul Zhang
For the channel structure: type hchan struct { qcount uint dataqsiz uint buf unsafe.Pointer elemsize uint16 closed uint32 elemtype *_type sendxuint recvxuint recvqwaitq sendqwaitq lock mutex } Why does the closed need a uint32?

Re: [go-nuts] Some questions about the memory allocation strategy of channel

2021-03-18 Thread Paul Zhang
r the gc, and gc would find the descriptor later with more time, thus lead to worse performance? Thanks a lot! Ian Lance Taylor 于2021年3月19日周五 上午2:50写道: > On Thu, Mar 18, 2021 at 9:55 AM Paul Zhang wrote: > > > > I was reading the source code of makechan(), and these questions &g

[go-nuts] Some questions about the memory allocation strategy of channel

2021-03-18 Thread Paul Zhang
I was reading the source code of makechan(), and these questions confused me. I would appreciate it if someone could help me. Q1. What does Elements do not contain pointers. mean? Does that means that the type of channel is not a pointer type (like chan int and chan *int)? Q2. Why does the allo

Re: [go-nuts] go install, replace directive any ongoing discussions?

2021-03-06 Thread Paul Jolly
>> I missed the conversation originally. however go install has been left in a >> unfortunate state where it bewilderingly errors out when the main module >> contains a replace directive. > > This sounds like a bug. I would file an issue with an easy reproduction case. Erroring on replace direct

[go-nuts] More info on gopls woes

2021-03-01 Thread Paul
rkspace.md>" problem addresses this, or if gopls still checks everything? I'm hoping I can get back to work with this setup, unless I always have problems with the two bigger subsystems, in which case I need to split them up into smaller pieces as well. cheers, Paul -- You rec

[go-nuts] Modules and gopls (in VSCode)

2021-03-01 Thread Paul
o folks have nothing to do with this, but when some libraries that are produced by some reasonably big'ish organizations haven't "modularized" their code, it can make the process that much more difficult to deal with. etcd client is a good example where I ran into this. And yes,

Re: [go-nuts] Differences between go1.16 and go1.15 ?

2021-02-25 Thread Paul Förster
uot;go run" per se, but "go run main.go" > as cargo cult for "execute my program written in Go". I agree. It's technically sound and well documented. But unfortunately, people tend to try things out and read the docs only if something doesn't work. So, misuse and

Re: [go-nuts] Differences between go1.16 and go1.15 ?

2021-02-25 Thread Paul Förster
ood, especially when starting with something completely new. Maybe rename the "run" command to "test", so it would be "go test ..." instead of "go run ..."? Just a thought. Cheers, Paul -- You received this message because you are subscribed to the Google

Re: [go-nuts] Go PostgreSQL? pg versus pgx

2021-02-22 Thread Paul Förster
ost list? Other mailing lists I subscribed to are generally inline-quoted. Cheers, Paul > On 22. Feb, 2021, at 16:14, Andrew Werner wrote: > > V4 clearly depends in some form or another on the earlier version. This on > its face also is not necessarily bad. At the end of the day here

Re: [go-nuts] Go PostgreSQL? pg versus pgx

2021-02-22 Thread Paul Förster
whose functionality I use from import "github.com/jackc/pgx/v4", i.e. sql.Ping(), etc., are actually linked into the final executable? Cheers, Paul -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gro

Re: [go-nuts] Go PostgreSQL? pg versus pgx

2021-02-22 Thread Paul Förster
Hi Andrew, > On 22. Feb, 2021, at 16:02, Andrew Werner wrote: > > Hi Paul, > > What makes you say that that is “heavyweight”? For what it’s worth, many of > those modules used to just be directories inside the pgx library. Splitting > them out has been good for the ecosy

Re: [go-nuts] Go PostgreSQL? pg versus pgx

2021-02-22 Thread Paul Förster
a fan of small footprints. :-) I'm new to Go, so please bear with me if my question seems somewhat strange to you. Cheers, Paul $ go get github.com/jackc/pgx/v4 go: downloading github.com/jackc/pgx/v4 v4.10.1 go: downloading github.com/jackc/pgx v3.6.2+incompatible go: downloading github.

[go-nuts] Go PostgreSQL? pg versus pgx

2021-02-22 Thread Paul Förster
files??? I just can't see the advantage of this, even though pgx obviously has more features. But that does not justify it being 80 times as big, does it? Any thought beyond the usage of some data types which pgx can handle and pg can't? Cheers, Paul -- You received this message becau

Re: [go-nuts] Grouped functions...

2021-02-12 Thread Paul Förster
what packages are for. I'd really love to see local functions, though, not for real scope usage but for clarity of coding. Also, grouping functions inside func (...) wouldn't make sense because that'd only mean that you'd basically indent almost all of your code unnecessarily

Re: [go-nuts] `go list` across multiple modules?

2020-12-23 Thread Paul Jolly
This re-parses > everything over and over. It takes almost 60 seconds just to do `cd > $dir; go list` (on the real kubernetes repo). Do you have a repro of this taking 60 seconds? Because that really shouldn't be the case with a populated local module cache. Paul -- You received this

Re: [go-nuts] How to use packages and modules with git repositories on private servers

2020-12-10 Thread Paul Jolly
We created a guide that looks to introduce this topic as part of the Play with Go launch a couple of weeks ago: https://play-with-go.dev/working-with-private-modules_go115_en/ I'd certainly be interested in any feedback you have on that guide, given the detailed response you wrote. Thanks On We

Re: [go-nuts] Online service to run Go code with Go modules support

2020-11-20 Thread Paul Jolly
which would also vary the commands needed to run the guide as necessary. If play-with-go.dev is of any interest I'd be happy to talk about that more (it's an open source project, supported by sponsorship) Paul -- You received this message because you are subscribed to the Google Gro

[go-nuts] Syntactic Sugar Idea for Go 2.0: until/unless, and postfix conditionals

2020-11-02 Thread Jeffrey Paul
een in Perl and Ruby for ages, and, more recently, CoffeeScript had it for a moment, but it didn't make it over into ES with the other notable features from it. I think it's a lovely convenience without changing the operation of the language itself. Best, -sneak -- Jeffrey Paul - s

Re: [go-nuts] Re: Generating code into module cache?

2020-10-22 Thread Paul Jolly
ke gohack (https://github.com/rogpeppe/gohack) do just that: establish a convention. Paul -- 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

Re: [go-nuts] Re: Generating code into module cache?

2020-10-20 Thread Paul Jolly
I would personally steer clear of writing anything to the module cache. If you are only code generating into the module cache and not publishing this generated code, by definition that generated content will not be available remotely. Hence any code you publish that depends on this generated conte

Re: [go-nuts] how to use replace directives in go.mod in dev but not prod

2020-09-22 Thread Paul Jolly
> CI probably is the anwser, made a utility based on golang.org/x/mod which > parses go.mod and checks if replaces are there and exit with error state if > they are. This isn't the problem discussed in 26640 at least. There, the issue is that it is not currently possible to have a go.mod.local f

Re: [go-nuts] how to use replace directives in go.mod in dev but not prod

2020-09-22 Thread Paul Jolly
26640 is an open issue describing the same problem you're describing. Unfortunately because it remains open there is not yet a solution. On Tue, 22 Sep 2020, 07:36 Alex Mills, wrote: > i dont understand, is there a solution or just a proposal? > > On Mon, Sep 21, 2020, 23:03 Pau

Re: [go-nuts] how to use replace directives in go.mod in dev but not prod

2020-09-21 Thread Paul Jolly
I just replied. I think that https://github.com/golang/go/issues/26640 covers this. On Tue, 22 Sep 2020 at 06:52, Alex Mills wrote: > > I put this question on the golang issue tracker on github: > https://github.com/golang/go/issues/41546 > > I am sure it's been answered before but hard to search

Re: [go-nuts] What are the best practices for go build tools?

2020-09-18 Thread Paul Jolly
#x27;t > find a description of best practices or even mention of +built tools. I'm not sure how you are getting into this situation, because go run will build a binary for the platform on which cmd/go is running. Unless you have GOOS and GOARCH set, in which case the go run during the g

Re: [go-nuts] How to use "go/build".ImportDir to get Package struct?

2020-09-17 Thread Paul Jolly
Hi, You want to be using https://pkg.go.dev/golang.org/x/tools/go/packages The docs include an example of how to do this. Thanks, Paul On Thu, 17 Sep 2020 at 12:29, Hein Meling wrote: > > Hi all, > > I'm trying to get info about the package, but the code below

Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-10 Thread Paul Jolly
CUE (https://cuelang.org/) will (in the near future) be able to help with the Go -> JSON Schema part (or indeed JSON Schema -> Go). Please feel free to ask any questions of the community via https://cuelang.org/community/ On Thu, 3 Sep 2020 at 08:05, Johann Höchtl wrote: > > > Hi, > I would like

Re: [go-nuts] obtaining the original type from a named alias type with go/types?

2020-08-21 Thread Paul Jolly
uot;unwinding" to actual type name a user referenced instead of the actual type. Best, Paul -- 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

Re: [go-nuts] obtaining the original type from a named alias type with go/types?

2020-08-21 Thread Paul Jolly
I think you were unlucky with your choice of type to experiment with. My understanding is that byte is special cased, despite being an alias: https://github.com/golang/go/blob/13e41bcde8c788224f4896503b56d42614e0bf97/src/go/types/universe.go#L25 Consider instead https://play.golang.org/p/MHjgBvbO

Re: [go-nuts] Generics and parentheses

2020-07-14 Thread Paul Johnston
If the generic expression was always attached/constrained to the "type" or "func" keyword (rather than the type or function name), perhaps this would decrease the lookahead problems with lexing? For example: *type Point struct {* *x, y int* *data T* *}* *type Transformer interface {*

Re: [go-nuts] Regarding time.NewTicker() and monotonic time

2020-06-10 Thread Curtis Paul
It sure does...thanks again :) On Wednesday, June 10, 2020 at 5:34:23 PM UTC-6, andrey mirtchovski wrote: > > > Cool, makes sense. Assuming NewTicker does return monotonic time. > > > > I wonder if there is a way to verify. > > just fmt.Println the value you receive on the ticker chan, you'll

Re: [go-nuts] Regarding time.NewTicker() and monotonic time

2020-06-10 Thread Curtis Paul
Cool, makes sense. Assuming NewTicker does return monotonic time. I wonder if there is a way to verify. On Wednesday, June 10, 2020 at 5:04:24 PM UTC-6, Ian Lance Taylor wrote: > > On Wed, Jun 10, 2020 at 3:48 PM Curtis Paul > wrote: > > > > It sounds like NewTicker wi

Re: [go-nuts] Regarding time.NewTicker() and monotonic time

2020-06-10 Thread Curtis Paul
time data that NewTicker returns (i.e. via it's > channel, etc...) includes monotonic time? > > it's right at the top: https://golang.org/pkg/time/ > > On Wed, Jun 10, 2020 at 4:48 PM Curtis Paul > wrote: > > > > It sounds like NewTicker will dynamical

[go-nuts] Regarding time.NewTicker() and monotonic time

2020-06-10 Thread Curtis Paul
It sounds like NewTicker will dynamically adjust to keep tick time "accurate". Does anyone know if the time data that NewTicker returns (i.e. via it's channel, etc...) includes monotonic time? And if so is the definition of NewTicker referring to adjusting real time clock or monotonic clock? I

Re: [go-nuts] Nondeterministic Behavior of for Loop Ranging Over a map

2020-05-25 Thread Paul Jolly
> Why the output of this code is nondeterministic? See https://golang.org/ref/spec#For_statements, specifically the "For statements with range clause" subheading, specifically this bullet: > 3. The iteration order over maps is not specified and is not guaranteed to be > the same from one iterati

Re: [go-nuts] Re: "Unused" transitive module requirements and licenses

2020-04-07 Thread Paul Jolly
> Suppose a company pulls in the main module into a monorepo. Such a repo might > be set up to pull in M1 in its entirety, and thus, recursively, M4 and M5, > regardless of whether the main module uses it. Thanks - that's a useful example. -- You received this message because you are subscribe

[go-nuts] "Unused" transitive module requirements and licenses

2020-03-19 Thread Paul Jolly
o > determine what version of the new dependency to add. Bryan makes a distinction between the go.mod files for M4 and M5 and the source code in those modules. Is anyone well-placed to offer some pointers on this question of whether or to what extent the licenses of M4 and M5 are significa

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-29 Thread Paul Hankin
On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: > > I am rather confused about modules, and have trouble making them work. > > I have a package: https://github.com/paulhankin/poker > > The go.mod looks like this: ` > module github.com/paulhankin/poker/v2 &g

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
On Friday, 28 February 2020 21:04:04 UTC+1, Paul Hankin wrote: > > On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: >> >> I am rather confused about modules, and have trouble making them work. >> >> I have a package: https://github.com/paulhankin/pok

[go-nuts] Re: modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
On Friday, 28 February 2020 20:43:16 UTC+1, Paul Hankin wrote: > > I am rather confused about modules, and have trouble making them work. > > I have a package: https://github.com/paulhankin/poker > > The go.mod looks like this: ` > module github.com/paulhankin/poker/v2 &g

[go-nuts] modules and my v2 package only partly appearing on go.dev

2020-02-28 Thread Paul Hankin
standing that's wrong, or if I made a mistake, or if go.dev isn't working correctly. I'm pretty frustrated with the experience so far. Thanks, Paul Hankin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Load function from golang.org/x/tools/go/packages throws "argument list too long" error

2020-01-29 Thread Paul Jolly
cc golang-tools, bcc golang-nuts Michael Matloob will be well-placed to advise here. On Wed, 29 Jan 2020 at 22:12, adam.welc via golang-nuts wrote: > > I am trying to analyze a large application using Go's static analysis > support. I am using the "packages" package to load all application pack

Re: [go-nuts] Re: Advise on working with local modules

2020-01-20 Thread Paul Jolly
>> Why not just the replace directive in go.mod? > > With the replace directive to a local module, the version is ignored and the > go tool always use the latest commit. How are you envisaging that local modules be addressed by commit, given the target is a directory (where by definition only a s

Re: [go-nuts] Unexpected evaluation order in a return statement with multiple operands

2020-01-15 Thread Paul Jolly
> "when evaluating the operands of an expression, assignment, or return > statement, all function calls, method calls, and communication operations are > evaluated in lexical left-to-right order." My understanding goes as follows: the operands of the return statement are i and modify(&i). The

Re: [go-nuts] Shell alias to get latest go versions?

2020-01-14 Thread Paul Jolly
I think you're after something like (for your OS/arch): wget https://dl.google.com/go/$(curl -s https://golang.org/dl/?mode=json | jq -r .[0].version).linux-amd64.tar.gz The JSON mode of the download page being the key here. On Tue, 14 Jan 2020 at 09:22, Steve Mynott wrote: > > Does anyone have

Re: [go-nuts] Existing hermetic end-to-end testing libraries for CLI applications?

2020-01-10 Thread Paul Jolly
r providing dependencies. The #tools channel on slack (or mailing list https://groups.google.com/forum/#!forum/golang-tools) is also a good place to chat about this more in case you had any follow-ups. Best, Paul -- You received this message because you are subscribed to the Google Groups &qu

Re: [go-nuts] types lookup for error interface type

2019-12-14 Thread Paul Jolly
> This seem massively over complicated, so I'm wondering if there is an > easier way. I think you're after types.Universe.Lookup("error")? Paul -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscrib

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Paul Jolly
I raised https://github.com/golang/go/issues/36052 for discussion. On Mon, 9 Dec 2019 at 10:29, Dan Kortschak wrote: > > Thanks. > > Yes, I always have GO111MODULE=on, hence the difference. > > On Mon, 2019-12-09 at 10:04 +, Paul Jolly wrote: > > > When you're

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Paul Jolly
> When you're not in a module it returns /dev/null on linux. I don't > suppose this is platform independent? I have to say what you saw surprised me until Daniel Martí and I did a bit of experimentation. It seems the value of GO111MODULE matters here. If you have GO111MODULE=on then the result of

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-08 Thread Paul Jolly
go env GOMOD - gives the path to the go.mod in use in module mode, and is empty otherwise (i.e. GOPATH mode) On Mon, 9 Dec 2019, 00:25 Dan Kortschak, wrote: > Is there a way to query whether an invocation of the go command would > be running in module mode? > > thanks > Dan > > -- > You received

Re: [go-nuts] Looking for an app w/ mult. versions of a dependency

2019-12-08 Thread Paul Jolly
> I'm wondering if any of you other nuts can point out examples? It's a hypothetical example but perhaps shows enough of what you're after? https://github.com/go-modules-by-example/index/blob/master/015_semantic_import_versioning/README.md -- You received this message because you are subscribed

Re: [go-nuts] Some questions on using the "golang.org/x/tools/go/packages" package

2019-11-23 Thread Paul Jolly
AFK but you might also like to post to https://groups.google.com/forum/#!forum/golang-tools (per https://github.com/golang/go/wiki/golang-tools) On Sat, 23 Nov 2019, 15:46 T L, wrote: > The packages.Config.ParseFileParseFile docs ( > https://godoc.org/golang.org/x/tools/go/packages#Config) says

Re: [go-nuts] Enforce immutability through static analysis

2019-11-22 Thread Paul Jolly
May or may not be of interest, but I experimented with an alternative approach in https://github.com/myitcv/x/blob/master/immutable/_doc/immutableGen.md Although this is where the term "immutable" gets massively overloaded, because the result of immutableGen is (as I understand it) persistent dat

Re: [go-nuts] Parsing go.mod

2019-09-03 Thread Paul Jolly
> Sorry I left out the details. So far it's two specific properties I need for > instructions in my build process: > > 1) The full name of the package go list -f {{.Name}} example.com/blah > 2) The version of the protobuf dependency for locking the right version > protoc-gen-go before runni

Re: [go-nuts] Parsing go.mod

2019-09-03 Thread Paul Jolly
Also note that you can run: go mod edit -json and get JSON output. go help mod edit will given you the types you can then use to unmarshal the JSON. Failing that, the code that Dan referenced has been factored out into: https://godoc.org/github.com/rogpeppe/go-internal/modfile On

Re: [go-nuts] Re: how to create path/v2 and path/v3 and path/v4 in same repo

2019-08-27 Thread Paul Jolly
The short version is: * semantic version git tags are the means of releasing new versions * you can follow whatever strategy you like when it comes to maintaining multiple major versions of a module (you might not need to); branch, subdirectory... Just so long as the git tag gets you to the right

Re: [go-nuts] Re: how to create path/v2 and path/v3 and path/v4 in same repo

2019-08-27 Thread Paul Jolly
To add to Chris' response also see the wiki https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher Also see https://github.com/golang/go/issues/33637 for details on how modules documentation will be getting a revamp in 1.14. On Tue, 27 Aug 2019 at 12:49, Chris Hines wrote: > >

Re: [go-nuts] Open Source audit of go package dependencies for security vulnerabilities?

2019-08-13 Thread Paul Jolly
Some related discussion in https://github.com/golang/go/issues/24031 and linked issues. On Tue, 13 Aug 2019 at 10:32, Steve Mynott wrote: > I've been introduced to https://rubysec.com/ which has a database > which easily integrates with builds to check for known security > vulnerabilities in thi

Re: [go-nuts] Replace modules from command line

2019-08-06 Thread Paul Jolly
anks for that, this will come in handy for editing the go.mod file. > But I'd like to avoid editing the file at all. > > > On Monday, August 5, 2019 at 7:16:08 PM UTC+2, Paul Jolly wrote: >> >> Take a look at go mod edit >> >> https://golang.org/cmd/go/#hdr-Mo

Re: [go-nuts] Replace modules from command line

2019-08-05 Thread Paul Jolly
Take a look at go mod edit https://golang.org/cmd/go/#hdr-Module_maintenance On Mon, 5 Aug 2019, 18:45 Peter Feichtinger, wrote: > Hi Go Nuts, > > I have a rather unusual use case and I'm hoping for some input. > > For testing purposes, I want to build a Go binary with different versions > of

Re: [go-nuts] Generating LSP protocol Go types

2019-07-13 Thread Paul Jolly
There is a good amount of discussion about this sort of thing in those various channels Paul On Sat, 13 Jul 2019 at 16:05, 'Peter Weinberger (温博格)' via golang-nuts wrote: > > I'm responsible for some of that code but other than that, I'm just giving my > persona

Re: [go-nuts] Interesting public commentary on Go...

2019-05-30 Thread Paul Jolly
gle. (If you want to know more about that, email Paul Jolly, > pa...@myitcv.io .) > More details available in the golang-tools wiki: https://github.com/golang/go/wiki/golang-tools, including links to YouTube recordings and notes from previous sessions. Our standards have slipped some

Re: [go-nuts] Re: Easy to use (getopt based) flags package

2019-04-10 Thread 'Borman, Paul' via golang-nuts
n just use the options packages. You can also use github.com/pborman/getopt/v2 in conjunction with the options package if need be. -Paul From: on behalf of "mhhc...@gmail.com" Date: Wednesday, April 10, 2019 at 4:00 AM To: golang-nuts Subject: [go-nuts] Re: Easy to use (getopt

[go-nuts] Easy to use (getopt based) flags package

2019-04-09 Thread Paul Borman
ing command line arguments from a file by using the options.Flags type. I hope that some of you might find this helpful in writing command line programs. -Paul -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] a way to query the module sum of a dependency with the go tool?

2019-03-23 Thread Paul Jolly
FWIW, none that I'm aware of. If there were to be such a command I would probably expect it be an option to go mod verify. Is there a problem with using go.sum in the way you're proposing? Or is this more a convenience thing? On Thu, 21 Mar 2019 at 22:03, Dan Kortschak wrote: > > Is there a com

Re: [go-nuts] Go command support for "make"

2019-03-20 Thread Paul Jolly
Hi Ian, > test $(go list -f '{{.Stale}}' internal/package$) = "true" Does .Stale still have meaning/is it still accurate in a build cache world? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving e

Re: [go-nuts] nested modules in a single repo

2019-03-09 Thread Paul Jolly
gt; > On Saturday, March 9, 2019 at 2:31:48 AM UTC+5:30, Paul Jolly wrote: >> >> (full disclosure, I wrote >> https://github.com/go-modules-by-example/index/blob/master/009_submodules/README.md) >> >> Quick first question: are you absolutely sure you need multiple module

Re: [go-nuts] nested modules in a single repo

2019-03-08 Thread Paul Jolly
(full disclosure, I wrote https://github.com/go-modules-by-example/index/blob/master/009_submodules/README.md) Quick first question: are you absolutely sure you need multiple modules? https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories On Fri, 8 Mar 2019 at 20:49, Abhishek

Re: [go-nuts] Re: WebAssembly: Auto-generating Go bindings for javascript/DOM from the Web Standards.

2019-02-24 Thread Paul Jolly
currently hand-written code. This will likely require some sort of tweaks/annotations atop WebIDL for any React vagaries, hence I'm wondering to what extent the WebIDL interface is reusable. Thanks, Paul -- You received this message because you are subscribed to the Google Groups "golang

Re: [go-nuts] Re: get Package from types.Type

2019-02-16 Thread Paul Jolly
bly want to dereference a *types.Pointer via Elem(), similarly for a slice. For a map you potentially have a more complex decision with two types! Paul On Sat, 16 Feb 2019 at 08:55, Randall O'Reilly wrote: > > nevermind - I think I figured it out — just need to drill down Underlying >

[go-nuts] What is the future of go mod vendoring?

2019-02-13 Thread Paul A. Fortin
I have heard that the vendir dirctory is here to stay and also that it is going away - can someone from the goteam give us a idea of the future of that feature? Thanks p4tin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-12 Thread Curtis Paul
This does what I need... oleutil.ForEach() On Sunday, February 10, 2019 at 2:09:39 PM UTC-7, Curtis Paul wrote: > > Any ideas on how I can get a list of fields (not values) after executing > something like this? > > resultRaw, _ := oleutil.CallMethod(service, "ExecQu

Re: [go-nuts] Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-12 Thread Curtis Paul
Using this "github.com/go-ole/go-ole" "github.com/go-ole/go-ole/oleutil" how does the sql package fit in? On Monday, February 11, 2019 at 1:00:29 AM UTC-7, Lutz Horn wrote: > > > Any ideas on how I can get a list of fields (not values) after executing > > something like this? > > Try these: >

[go-nuts] Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-10 Thread Curtis Paul
Any ideas on how I can get a list of fields (not values) after executing something like this? resultRaw, _ := oleutil.CallMethod(service, "ExecQuery", "SELECT * FROM Win32_ComputerSystem") result := resultRaw.ToIDispatch() defer result.Release() Basically I just want a list of the field names f

Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-28 Thread 'Borman, Paul' via golang-nuts
is probably not what you are looking for. I have sometimes made public values in package main, but simply to give them more visibility. Why do you want to make a value public in the main package? What problem are you trying to solve? -Paul From: Michael Banzon on behalf of Michael

Re: [go-nuts] go install touches the result file even if no changes

2019-01-25 Thread Paul Jolly
Tim - in case it's of any interest, I am in the process of (re)writing a dependency-aware wrapper around go generate that caches results in an artefact cache (i.e. only re-runs code generation as required). On Sat, 26 Jan 2019 at 03:56, 'Tim Hockin' via golang-nuts wrote: > > Fair point, of cours

Re: [go-nuts] What exactly is a method set?

2019-01-20 Thread Paul Jolly
Have you see the Go Spec? https://golang.org/ref/spec#Method_sets On Sun, 20 Jan 2019 at 12:37, 伊藤和也 wrote: > > What exactly is a method set? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop recei

Re: [go-nuts] multiple binaries from a single directory with go modules?

2019-01-19 Thread Paul Jolly
Perhaps the most idiomatic way of achieving this is: GOBIN=$PWD go install ./cmd/{foo,bar} go install is also more efficient than go build because it will only perform the link step if the target is out of date. I'm no expert with make, so I don't know how this sort of approach maps back onto ma

Re: [go-nuts] Will golang.org/x/sys be getting a go.mod file?

2019-01-11 Thread Paul Jolly
See https://github.com/golang/go/issues/27858 and related issues. On Fri, 11 Jan 2019 at 13:49, wrote: > > Hello guys, > > Apologies if this has already been discussed but I couldn't find it. > > I've just converted a server to use modules. I did it by "go mod init > example.com/server-name" in

Re: [go-nuts] Re: WebAssembly: Auto-generating Go bindings for javascript/DOM from the Web Standards.

2019-01-02 Thread Paul Jolly
Yes; see https://github.com/golang/go/wiki#the-go-community for details on how to join. On Tue, 1 Jan 2019 at 19:49, Chris FractalBach wrote: > > Are the # channels on slack? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscrib

Re: [go-nuts] Go Modules should detect breaking changes on public API (exported members) end enforce semver

2018-12-19 Thread Paul Jolly
Oh, and https://github.com/go-modules-by-example/index/blob/master/019_apidiff/README.md for a quick demo on apidiff. On Wed, 19 Dec 2018 at 19:10, Paul Jolly wrote: > > Please see: > > * https://github.com/golang/go/issues/26420 > * https://godoc.org/golang.org/x/exp/cmd/api

Re: [go-nuts] Go Modules should detect breaking changes on public API (exported members) end enforce semver

2018-12-19 Thread Paul Jolly
Please see: * https://github.com/golang/go/issues/26420 * https://godoc.org/golang.org/x/exp/cmd/apidiff which uses https://godoc.org/golang.org/x/exp/apidiff Effectively what you are discussing is broadly covered, at least based on current thinking, in the go release command. On Wed, 19 Dec 201

Re: [go-nuts] Versioning golang.org/x/foo packages

2018-12-14 Thread Paul Jolly
Just to briefly note the discussion in https://github.com/golang/go/issues/27858 (and other issues linked within that one). On Fri, 14 Dec 2018 at 15:00, David Riley wrote: > > Hi all, > > We're building with go 1.10.x and dep for a project at work, and having been > bitten twice in the space of

Re: [go-nuts] Rethink possibility to make circular imports

2018-11-29 Thread Paul Jolly
Can I suggest you provide a real example to help motivate why you think circular package imports should work, and therefore what they would solve? I will note that circular module dependencies are possible and have good reasons to exist (https://github.com/go-modules-by-example/index/blob/master/0

Re: [go-nuts] Re: go modules and vendor: redundant features?

2018-11-22 Thread Paul Jolly
The main issue tracking vendoring-related discussion is https://github.com/golang/go/issues/27227 On Thu, 22 Nov 2018 at 09:08, wrote: > > Vendor must be kept for when dependencies are no longer available online. > > On Saturday, 17 November 2018 04:33:55 UTC, Henry wrote: >> >> Hi, >> >> It seems

Re: [go-nuts] Using git-codereview with GitHub

2018-11-21 Thread Paul Jolly
> There is hub [1]. If you have not heard it, its work by > repo-branch-commits, Thanks, but as I understand it, this tool is branch-based. I want to make my workflow oriented around single commits (on a local branch). Paul -- You received this message because you are subscribed

[go-nuts] Using git-codereview with GitHub

2018-11-21 Thread Paul Jolly
ach commit correspond to a GitHub PR. Would involve creating some PR-specific branches etc. I realise there are some significant differences that might make this infeasible/impractical, but thought I'd ask here as a starting point. Thanks, Paul -- You received this message because you are su

Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Paul Jolly
> > To add to the responses below, a Language Server Protocol (LSP - > > https://microsoft.github.io/language-server-protocol/) implementation > > is also in the works > > Is there a link to share wrt 'in the works'? Sorry, yes, that was needlessly vague. We get updates from the Go tooling team o

  1   2   3   >