Re: [go-nuts] go: go.mod file not found in current directory or any parent directory; see 'go help modules'

2024-03-28 Thread Wojciech S. Czarnecki
Dnia 2024-03-25, o godz. 11:58:57 Kurtis Rader napisał(a): > Please don't use screenshots for plain text. Uhhh... and do delete images on the reply, please. That said: Thank you for reacting to screenshots posted :) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -

Re: [go-nuts] go1.21.0 panics when loading plugin

2023-08-12 Thread Wojciech S. Czarnecki
Dnia 2023-08-08, o godz. 18:11:56 Bernd Fix napisał(a): > After switching from go1.20.7 to go1.21.0 one of my applications > compiles without warnings or errors, but fails at run-time with the > following panic when loading a plugin: IIRC release notes tools now are version aware, so likely

[go-nuts] The double caret statement

2023-08-02 Thread Wojciech S. Czarnecki
n defer fh.Close() x, e := tryparse(fh) ^^ { logSmth(e) return } // ... return } Reference thread: https://groups.google.com/d/msgid/golang-nuts/18e49891-9012-433d-89ce-3dfcc0625cedn%40googlegroups.com P.S. That is for YetAnotherOfThousandOfGoErrorHandlingIdeas being archived ;) --

Re: [go-nuts] Error handling

2023-08-02 Thread Wojciech S. Czarnecki
d before returning, eg w, err := os.Create(dst) ^^ { return err } P.S — bat operator is easily implementable in an IDE with onFileOpen/onFileWrite hooks. Its the piping of content to tools (VSCode and GoLand) that bars me from personally using it. Hope this helps, -- Wojciech S. C

Re: [go-nuts] Please consider voting to reopen Golang subreddit

2023-06-24 Thread Wojciech S. Czarnecki
st, IMO, as it would cost. It seems to me that current Reddit's brass has no faintest idea how many $millions monthly mod's work is worth. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Best practice for "main.go" to access members of a structure in the real package

2023-02-27 Thread Wojciech S. Czarnecki
Here is mine's substitute I prefer for simple cmd scripts: https://github.com/ohir/mopt > But I've been using file/package level vars. This is clearly a bad thing. It is perfectly OK if these are set once from the cmdline. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OH

Re: [go-nuts] How long does it take to import packages?

2022-08-31 Thread Wojciech S. Czarnecki
much time were spent on initialization. After removing all init() function > in relevant packages. The speed was still very slow.It even takes dozens of > seconds before entering my real unit test function. hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- Yo

Re: [go-nuts] pkg.go.dev: navigation index is confusing

2021-09-04 Thread Wojciech S. Czarnecki
p | grep -i pref` const TrailerPrefix = "Trailer:" func StripPrefix(prefix string, h Handler) Handler `go doc net/http | grep -i pars` func ParseHTTPVersion(vers string) (major, minor int, ok bool) func ParseTime(text string) (t time.Time, err error) Hope this helps, -- Wojciech S. C

Re: [go-nuts] pkg.go.dev: navigation index is confusing

2021-09-03 Thread Wojciech S. Czarnecki
ed before hitting "send". :( I misunderstood Markus Heukelom's problem. @Markus: I normally use browser's search function to get to the function and it works well with pkg.go.dev too. @Axel: I sincerely apologize for undeserved and misguided sarcasm. Shame on me. -- Wojciech S. Czarnecki &

Re: [go-nuts] pkg.go.dev: navigation index is confusing

2021-09-03 Thread Wojciech S. Czarnecki
d only things I am already intimately familiar with? Uh. Now I am the more glad I got local godoc fork: https://sr.ht/~sircmpwn/godocs.io/ yw, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-

Re: [go-nuts] Makefiles for Go Programs

2021-08-24 Thread Wojciech S. Czarnecki
nor update again. Make does not come alone for end-users. Usually it comes bundled with several hundreds of megabytes of the devel packages user gets after issuing eg. `sudo apt-get install build-essential`. Then she's left with a bit more more unused stuff than a single mage binary. TC, -- W

Re: [go-nuts] Re: Makefiles for Go Programs

2021-08-23 Thread Wojciech S. Czarnecki
Dnia 2021-08-23, o godz. 19:47:47 Roland Müller napisał(a): > What are the alternatives to Makefile that are used by Go developers? https://github.com/magefile/mage yw. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribe

Re: [go-nuts] Re: Small number change will affect benchmark results

2021-07-29 Thread Wojciech S. Czarnecki
mit important facts. This stands! You often post too soon. Please remember that this is MAILING list that just happens to have web interface. You do often "thinkk in loud" and I see an inflow of messages to my mailbox. Just let your question grow for a while before you post, will you?:) T

Re: [go-nuts] proposal: infer module name via version control when running `go mod init`

2021-05-12 Thread Wojciech S. Czarnecki
lite db). Hoe this helps > Best, > Jon -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

[go-nuts] Do not post images of text, please. [Was: doesn't see the function in the same package(pug/jade)]

2021-05-10 Thread Wojciech S. Czarnecki
Dnia 2021-05-09, o godz. 07:47:21 Денис Мухортов napisał(a): > [image: хелп1.PNG][image: хелп2.PNG] Do not post images of text to programmer's list, please. Read rules at https://groups.google.com/g/golang-nuts TiA, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -

Re: [go-nuts] I want to help with polish version of "A Tour of Go", how to start?

2021-05-04 Thread Wojciech S. Czarnecki
olang/tour/blob/master/TRANSLATE Proszę uprzejmie :) > Kamil Ziemian (don't try to spell my name ;)) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from th

Re: [go-nuts] what is a &^= b means?

2021-04-24 Thread Wojciech S. Czarnecki
s://yourbasic.org/golang/bitwise-operator-cheat-sheet/ Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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] Modules... why it has to be so painfull?

2021-04-09 Thread Wojciech S. Czarnecki
onable or not — objectively — I can not tell as I am an author. Though I'd like to see other's opinion whether proposed solution would work for them. TC. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups &

Re: [go-nuts] [Macos/Apple M1] HTTP client requests to ".local" domain adds 5 seconds overhead

2021-03-31 Thread Wojciech S. Czarnecki
n-fix/ TL;DR do NOT use .local; keep hosts entries under allowed 10 names. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] explain functionality similar to "go mod why for" to help with message "build constraints exclude all Go files in ..." ?

2021-03-30 Thread Wojciech S. Czarnecki
xcluded by name constraint (GOOS != windows) > > package github.com/ohir/buildconstr: build constraints exclude all Go > > files in /path.../buildconstr TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google

Re: [go-nuts] explain functionality similar to "go mod why for" to help with message "build constraints exclude all Go files in ..." ?

2021-03-30 Thread Wojciech S. Czarnecki
raint (GOOS != windows) package github.com/ohir/buildconstr: build constraints exclude all Go files in /path.../buildconstr TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" gr

Re: [go-nuts] explain functionality similar to "go mod why for" to help with message "build constraints exclude all Go files in ..." ?

2021-03-29 Thread Wojciech S. Czarnecki
o about the constraint that excluded given file from under build. And I concur. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Wojciech S. Czarnecki
ching this thread — all its yaks already are hairless. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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 g

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Wojciech S. Czarnecki
some fogged souls can yet be saved. Mankind invented ostracism exactly for such purposes: to correct harmful behaviors in a non-violent way. EOT. This list is not meant for peddling "fake-right" propaganda. "Evil not welcome here" sign is at the right place. Let it stay. [1] https://

Re: [go-nuts] Re: [ANN] New german translations

2021-03-16 Thread Wojciech S. Czarnecki
;> enter the room. They contradict their parents, chatter before company, >>>> gobble up dainties at the table, cross their legs, and tyrannize their >>>> teachers. [https://www.bartleby.com/73/195.html] :) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You

Re: [go-nuts] running tests against benchmarks

2021-03-15 Thread Wojciech S. Czarnecki
e this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+uns

Re: [go-nuts] No generic, part -2

2021-03-15 Thread Wojciech S. Czarnecki
ut these are minor disturbances. We just will learn to read and visualize new meanings in the code. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] insane idea to eliminate CGO latency

2021-03-14 Thread Wojciech S. Czarnecki
or by the amount of human work not done. Where it nears impossible there we are and we will be using wrappers :) Neither I advocated rewrite of everything — but for small to middle things it can be done and pays almost immediately with lower entry and usage costs (eg. https://www.gonum.org/). >

Re: [go-nuts] insane idea to eliminate CGO latency

2021-03-14 Thread Wojciech S. Czarnecki
//github.com/minio/c2goasm It lets you bootstrap fast, then you may aim at a proper rewrite. Caveats: https://github.com/golang/go/issues/40724 https://github.com/golang/proposal/blob/master/design/27539-internal-abi.md Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> O

Re: [go-nuts] Brook v20210214 Released – cross-platform strong encryption, undetectable proxy. Open Source via GPLv3

2021-02-26 Thread Wojciech S. Czarnecki
Dnia 2021-02-25, o godz. 19:50:24 txthinking com napisał(a): > Document: https://txthinking.github.io/brook/ There is NO document there, the less txt document. This url wants to load a javascript app. Good telltale about "security". -- Wojciech S. Czarnecki << ^oo^ &g

Re: [go-nuts] Error handling

2021-02-22 Thread Wojciech S. Czarnecki
y path view" by amending mainstream IDEs folding code with "fold to finger" functionality. I mean, let the IDE hide every `if err != nil` {; return err }` block and display  (U+1F446) next to the lhs err symbol instead: /// Where such code file, err := f.Open(name)

Re: [go-nuts] Code markup in golang-nuts

2021-02-21 Thread Wojciech S. Czarnecki
pets on this group. > And I have yet to find an easy way to do this. Put your code on the playground, press [SHARE] then copy url and paste in your message. This is the right way to share Go code. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You

Re: [go-nuts] Error handling

2021-02-21 Thread Wojciech S. Czarnecki
t( %s )\n", err.Error(), s.Trig) return 0, 0, 0, err } // output: ‖ failed Test: ( x > y ) // for x > y ‖ failed Assignment: ( !ok ) // for closed ch ‖ failed Assignment: ( z < 0 ) // for z < 0 ‖ Whatever err said: ( err != nil ) // for failed f(z, r) and

Re: [go-nuts] How do you test an unpublished module?

2021-02-20 Thread Wojciech S. Czarnecki
ge directory and there are files :) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+uns

Re: [go-nuts] Error handling

2021-02-20 Thread Wojciech S. Czarnecki
ated on, then finally released in a consistent state. So we don't throw "something went wrong" (ie. unhandled exception) up. Nor we do "Return if any error". We do check errors, then retry in loops. Go explicit, IN PLACE handling helps with that alot. TC, -- Wojciech S. Cza

Re: [go-nuts] How do you test an unpublished module?

2021-02-20 Thread Wojciech S. Czarnecki
hints about other hacks people conceived to be able to work on interdependent code. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fr

Re: [go-nuts] gofmt return multiple function closures

2021-02-19 Thread Wojciech S. Czarnecki
Dnia 2021-02-19, o godz. 05:52:38 Neehar Vijay napisał(a): > Does gofmt assume tab width of 4 or 8? Gofmt uses ascii tab characters. It is up to readers to set tabs width as they please. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this

Re: [go-nuts] Re: go get not working in Go 1.16

2021-02-17 Thread Wojciech S. Czarnecki
Dnia 2021-02-16, o godz. 13:57:06 Peter Kleiweg napisał(a): > So why would you ever want to *not* set `GO111MODULE=auto` ? > Because GOPATH mode is gonna to be slayed soon. It is better to use it less and less to avoid future disruption. Hope this helps, -- Wojciech S. Czarnecki

Re: [go-nuts] Re: How to get VSCode to use different Go env vars for different directories in the same repo?

2021-02-14 Thread Wojciech S. Czarnecki
out (original one) seems good and straightforward, and the need for having per-folder environment settings or build-tags is real. It shouldn't be the IDE that dictates Go project structure, IMO. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you

Re: [go-nuts] Error handling

2021-02-14 Thread Wojciech S. Czarnecki
ers "boilerplate" as asset. Error handling proposals umbrella: https://github.com/golang/go/issues/40432 > Michael. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Possible Go 2 proposal for built-in Remove method for Slices.

2021-02-06 Thread Wojciech S. Czarnecki
y, my mind wandered near subtle fallacies surrounding slice usage https://blog.allegro.tech/2017/07/golang-slices-gotcha.html Nonetheless, I humbly apologize to whomever wasted time trying to guess what I had on mind. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE --

Re: [go-nuts] Possible Go 2 proposal for built-in Remove method for Slices.

2021-02-05 Thread Wojciech S. Czarnecki
-- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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...@googlegroups.com.

Re: [go-nuts] R.I.P. Michael Jones

2021-02-04 Thread Wojciech S. Czarnecki
Dnia 2021-02-05, o godz. 00:12:56 Jan Mercl <0xj...@gmail.com> napisał(a): > https://www.geospatialworld.net/blogs/goodbye-michael-jones-the-man-who-gave-the-power-of-maps-in-our-hands/ Great man of wisdom he was, :( such a sad day. -- Wojciech S. Czarnecki << ^oo^ >&g

Re: [go-nuts] Possible to make base64 pick the decode encoding automatically?

2021-02-03 Thread Wojciech S. Czarnecki
coder that also returns an indicator what unexpected format discrepancy it forgave. This would be easy to do for static data; I see no easy solution for such signaling on streams though. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message beca

Re: [go-nuts] Possible to make base64 pick the decode encoding automatically?

2021-02-03 Thread Wojciech S. Czarnecki
stems by an adversary" - as adversaries are known to eagerly and clandestinely interoperate with our software using whatever means we left them to exploit. (Off the hat example: consuming "liberal" JSON input may allow an attacker to disrupt data guarded by a simple MAC scheme.)

Re: [go-nuts] How to improve the parallelism of go routine?

2021-02-01 Thread Wojciech S. Czarnecki
> I'm not sure how to deal with this phenomenon when I find that the parallel > > performance > > using go routine is not very good when writing database(olap) code. First - use recent Go compiler version, current is 1.15, 1.16 is coming soon. Hope this helps, -- Wojciech S. Czarnec

Re: [go-nuts] go build hangs with 1.15.7 on Windows 10

2021-01-26 Thread Wojciech S. Czarnecki
mpiler binaries to AV exemption lists. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

[go-nuts] Restrict general type parameter identifiers to be a single uppercase ascii letter.

2021-01-19 Thread Wojciech S. Czarnecki
dentifiers: https://go2goplay.golang.org/p/eWgJSLNTZw8 -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

Re: [go-nuts] Go Create

2021-01-13 Thread Wojciech S. Czarnecki
o love from the Team. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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] Signature Switch - third path to Go generics

2020-12-31 Thread Wojciech S. Czarnecki
just an ad-hoc idea stem from the partisan fights I read past year. One to be looked at in leisure time and exercise on the paper, if at all :) Happy New Year! -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Gro

[go-nuts] Signature Switch - third path to Go generics

2020-12-31 Thread Wojciech S. Czarnecki
} return r } More to read at: https://play.golang.org/p/Q1ry4KPoOOJ Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group an

Re: [go-nuts] Re: Generics, please go away!

2020-12-25 Thread Wojciech S. Czarnecki
Dnia 2020-12-25, o godz. 11:28:54 "Space A." napisał(a): > What a ridiculous bullshit. Please keep discussion here civilized. This is not a proper place for name-calling and expletives. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message b

Re: [go-nuts] Obtaining an efficient hash for Go values

2020-12-24 Thread Wojciech S. Czarnecki
erties. https://github.com/golang/go/blob/master/src/runtime/map.go https://dave.cheney.net/2018/05/29/how-the-go-runtime-implements-maps-efficiently-without-generics Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed t

Re: [go-nuts] multicasting with encoding/gob

2020-12-23 Thread Wojciech S. Czarnecki
Dnia 2020-12-23, o godz. 13:45:10 meera napisał(a): I'd use flatbuffers. https://google.github.io/flatbuffers/flatbuffers_guide_use_go.html It is possible to extract gob encoded bytes and copy it over multiple receivers but it would be an overkill, likely. -- Wojciech S. Czarnecki <&l

Re: [go-nuts] Re: Generics, please go away!

2020-12-22 Thread Wojciech S. Czarnecki
ead and *understand* a lot of other's code before you will start to write your part. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop re

Re: [go-nuts] Proposal: New keyword returnif (resolves error handling)

2020-11-11 Thread Wojciech S. Czarnecki
The Go team's "try" proposal (I assume you read) was called off for exact same reason: "try" construct has been encouraging what many Go programmers assumed as a bad practice. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received

Re: [go-nuts] Re: use same for/range code on a hash map but it has different result

2020-11-11 Thread Wojciech S. Czarnecki
e are people on this (and many other technical lists) to whom ALL pictures sounds the same. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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] Licence details of github.com/golang/sync

2020-10-29 Thread Wojciech S. Czarnecki
en make sure to be very frank with them about what you did, what you do, and what you plan to do with your implementation. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE P.S. My "Common-sense" advice is this: as whole Go ecosystem is under this grant, i

Re: [go-nuts] Any embedded scripting language for Go

2020-10-21 Thread Wojciech S. Czarnecki
I could embed it in Go App as > well. Beside mentioned above playspace (that utilizes script that can be understood by 3-4yo kids), there are Go interpreters as well, you might plug in - most recent I am aware of is at https://github.com/traefik/yaegi Hope this helps, > Aravindhan K >

Re: [go-nuts] Re: Proposal to add Index operator methods

2020-10-06 Thread Wojciech S. Czarnecki
go generate. Your OP problem* calls for a transpiling tool - one that from the python/matlab input produces boring Go readable also by general Go audience. *[that matlab/numpy accustomed programmers would be more productive using known or similar to known to them syntax] Hope this helps, --

Re: [go-nuts] ERRORLEVEL issue. Screenshots detected.

2020-09-21 Thread Wojciech S. Czarnecki
@ Kurtis Rader Please DO NOT reply to posts containing screenshots of text. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivin

Re: [go-nuts] alloc vs totalalloc in memory

2020-09-12 Thread Wojciech S. Czarnecki
ver increasing "cumulative counter". Think a cash register - every single item's price is added to "TOTAL" (sum, cumulative) variable. > but HeapAlloc remains the same? > [image: Screenshot from 2020-09-11 17-12-32.png] Please do NOT post screenshots here. -- Wojciech

Re: [go-nuts] Re: what is the complexity of regexp.MustCompile()?

2020-06-08 Thread Wojciech S. Czarnecki
ong explanations... Axel just posted most of what I was writing regarding trade-offs). Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

Re: [go-nuts] Any solution to hide my source code written in Go and make it a library to develop in Go as well

2020-05-20 Thread Wojciech S. Czarnecki
or IDA Pro disassembler will gladly take at it. P.S. compileable does not mean understandable at first sight. This further step costs magnitudes more, but for the reuse and small "impedance fitting" purposes is not really needed. Nor it is needed for a possible thief. hope this helps,

Re: [go-nuts] [ANN] Unik, a Go unikernel capable of running Gio GUI programs

2020-04-13 Thread Wojciech S. Czarnecki
Dnia 2020-04-13, o godz. 11:42:16 Elias Naur napisał(a): > https://eliasnaur.com/unik Thank you. Respect! :) > -- elias -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Re: Golang and the mobile framework

2020-03-27 Thread Wojciech S. Czarnecki
Dnia 2020-03-26, o godz. 22:18:40 husam alkdary napisał(a): > which one react-native or Flutter ? and how ? https://www.arputer.com/using-go-library-in-flutter hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you

Re: [go-nuts] Re: Where is the version number for a golang module declared?

2020-03-13 Thread Wojciech S. Czarnecki
dev-2020 [2] https://github.com/golang/go/issues/36747 [3] https://github.com/golang/go/issues/36840 PS. I do not blame the technical team, as IMO this was a "business decission" in upper echelons of Google what dev-team as a G employees, must obey. > Nick -- Wojciech S. Czarneck

Re: [go-nuts] Re: Where is the version number for a golang module declared?

2020-03-12 Thread Wojciech S. Czarnecki
nvented at Google, so chances we would ever have sane G-independent setup are miniscule now. Mind also that GOPATH is now led to the guillotine, to force all this "local server / crafted hosts / GOPRIVATE setup" fun on everyone not willing to share her development setup with the big G. m

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-20 Thread Wojciech S. Czarnecki
> ("Smart tabs" were mentioned by Manilo in other thread. :) Uh, it was in this one, excuse me. Got both my and Manilo's mixed. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nu

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-20 Thread Wojciech S. Czarnecki
fact needs none marker, it could as well used heuristics to set csPos = tsPos +8, or +16. Marker gives an opt-in switch here. > - Dave TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golan

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-20 Thread Wojciech S. Czarnecki
he past code in millions of repos. The fixed `csPos := tsPos += 8` would work for most of Go code w/o knob. > most people will not accept code that is not formatted by the > "standard" gofmt. Thats why it can be implemented "by the core team only". TC, -- Wojciech S. Cz

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-20 Thread Wojciech S. Czarnecki
dmit that from the business pov it also may give a huge advantage over competitors). -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-19 Thread Wojciech S. Czarnecki
on it, as I neither have a time for, nor I long for next round of defending the obvious again. https://github.com/golang/go/issues/37299 TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nut

[go-nuts] [Proposal] cmd/gofmt Minimize adjacent whitespace changes on struct layout edits.

2020-02-19 Thread Wojciech S. Czarnecki
llows the opening brace of the block. https://github.com/golang/go/issues/37299 -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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] Re: [Proposal] Change how gofmt formats struct fields

2020-02-18 Thread Wojciech S. Czarnecki
past the rounded 8 boundary. Then whole struct will make to the changeset, not just huge parts of it. Hope this helps, > Manlio -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" gro

Re: [go-nuts] Any chance of not deprecating GOPATH ?

2020-02-02 Thread Wojciech S. Czarnecki
the tip of some package, use go.mod.local not to 'replace' but to pin version/commit only. 3. go mod tidy && go mod release # make the go.mod as of current package shape commit && tag && push # publish, fix version, possibly make to the modules cache -- Wojciech

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-30 Thread Wojciech S. Czarnecki
ifftool" functionality added. Called with -u it would produce source with minimal whitespace possible — to be used in the commit pipeline. Called with -g on the difftool pipeline it would try to nicely format diff chunk. === > Manlio Perillo Hope this helps, -- Wojciech S. Czarnecki

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-30 Thread Wojciech S. Czarnecki
usted and forgotten 013 VT char for this purpose. Alas, this would break some of contemporary browsers and editors ;) > Dan -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&q

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-29 Thread Wojciech S. Czarnecki
e. it will never work as intended in the field as people are using tabwidths from 2 to 8. > Manlio Perillo Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&qu

Re: [go-nuts] Re: Go mindshare is low & ~flat, per Google Trends

2020-01-26 Thread Wojciech S. Czarnecki
in fashion, diet, politics and outbreaks — could be (modulo astroturfing bots). -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving em

Re: [go-nuts] Re: Go mindshare is low & ~flat, per Google Trends

2020-01-21 Thread Wojciech S. Czarnecki
is the last thing Go community needs. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+

Re: [go-nuts] Go mindshare is low & ~flat, per Google Trends

2020-01-21 Thread Wojciech S. Czarnecki
roblems people have with said technology. They do not search about what they already know and about what works as described. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&qu

Re: [go-nuts] [long STW] I have a problem with STW, which PauseNs max > 4s

2019-12-12 Thread Wojciech S. Czarnecki
d and more sane solution is to recompile with current Go version and raise issue if your core problem would persist. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] [ANN] godoc: allow for lists, links, and rudimentary text styling [proposal].

2019-11-28 Thread Wojciech S. Czarnecki
I would like to announce a "rich godoc syntax" proposal. https://github.com/golang/go/issues/35896 Please do NOT reply to this announce here. The issue/35896 tracker is a proper venue to discuss proposals. Thank you, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-

Re: [go-nuts] strict type assignability to prevent arbitrary values

2019-11-10 Thread Wojciech S. Czarnecki
type (eg. a function call parameter). If you're just after sanity check there are many ways. At runtime you can eg. use a map: https://play.golang.org/p/5rwJLFpU3a4 For compile time - you can use stringer tool to generate numerical constants mapped to strings. hope this helps, -- Wojciech S. Czarneck

Re: [go-nuts] Re: Slices, backing array, goroutines, perhaps Considerations for Go2

2019-10-28 Thread Wojciech S. Czarnecki
and it always will be a programmer's error. More, no known to me code analysis tool could comprehend changes to your shared state in full and then flag only the wrongs. An AI capable of that would also be capable of replacing us at our desks ;) Hope this helps, -- Wojciech S. Czarnecki &l

Re: [go-nuts] Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Wojciech S. Czarnecki
this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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...@googlegro

Re: [go-nuts] Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Wojciech S. Czarnecki
nding_and_copying_slices > Please help. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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, s

Re: [go-nuts] Re: An old problem: lack of priority select cases

2019-10-05 Thread Wojciech S. Czarnecki
turns on all the heavy machinery of a full select block). Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiv

Re: [go-nuts] Re: An old problem: lack of priority select cases

2019-10-05 Thread Wojciech S. Czarnecki
dent events. Even if mr Tapir really does not, he for sure would not be alone, so we all benefit from his questioning the Emperor's wear. So please don't be rude to him. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed

Re: [go-nuts] Re: An old problem: lack of priority select cases

2019-10-04 Thread Wojciech S. Czarnecki
nnel operations serviced by select are treated as sourced from **independent** events. Period. If your out <-v must be dependent of ctx.Done not being ready you must resolve this dependency by other means. Eg. by selecting for it in separate select before. Hope this helps, -- Wojciech S.

Re: [go-nuts] CreateFile hello.go: The system cannot find the file specified

2019-09-22 Thread Wojciech S. Czarnecki
via link. > Kapil Dev -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+

Re: [go-nuts] Re: Running golang compiled binary on QNX

2019-09-12 Thread Wojciech S. Czarnecki
happy to do the Go port for your employer. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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, s

Re: [go-nuts] Re: What is the reason behind time.Parse using a reference time?

2019-08-16 Thread Wojciech S. Czarnecki
ured when parsing in common formats. Hope this helps :) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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, s

Re: [go-nuts] Re: What is the reason behind time.Parse using a reference time?

2019-08-15 Thread Wojciech S. Czarnecki
minutes, seconds, year, zone" sequence and you can read/understand any of hundreds being in use date formats. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To uns

Re: [go-nuts] Wrapper package for dialog (and Xdialog)?

2019-08-12 Thread Wojciech S. Czarnecki
dialog-base requirement/use. You can try to embed tcl/tk, the standard unix way for doing dialog with x-user. [recent] https://github.com/visualfc/atk [ooold] https://github.com/nsf/gothic Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received

Re: [go-nuts] Re: How to mock functions in Go ?

2019-08-04 Thread Wojciech S. Czarnecki
thorig intact Beware of packages that have init and keep state. Hope this helps. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

Re: [go-nuts] time.Format vs. fmt.Sprintf

2019-07-24 Thread Wojciech S. Czarnecki
> >>> April 5, 2012 (for ascii impaired webpages) April 5, 2012 (for insane mail clients that cut all interleaved citations) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&quo

Re: [go-nuts] Does reducing capacity of a slice return memory?

2019-07-20 Thread Wojciech S. Czarnecki
ff it. >>> I understand that it is very easy on application level... And thats why it belongs there, IMO :) >>> if programmer even thought about it. She certainly should, because only she does know meaning of "big" and "small" in context. > A. Hope this helps,

Re: [go-nuts] Re: About the Google logo on the new Go website

2019-07-17 Thread Wojciech S. Czarnecki
ts a lot. P.S. This is really OT for the go-nuts list, but the Oracle's "alternative facts" that are spread in many media outlets need correction. I do not blame Michael Jones for falling a prey to that - he's within a legion. Hope this helps, -- Wojciech S. Czarnecki << ^oo^

  1   2   3   >