Re: [go-nuts] Statically compile and link a go program with C dependencies

2019-01-21 Thread Kurtis Rader
; 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. > For more options, visit https://groups.google.c

Re: [go-nuts] regexp: is there a way to match single byte ?

2018-12-30 Thread Kurtis Rader
yte locale (e.g., "C" or "POSIX"). -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr

Re: [go-nuts] Very long API call

2019-03-27 Thread Kurtis Rader
but your question is completely devoid of any useful information. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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] Very long API call

2019-03-27 Thread Kurtis Rader
rticularly unusual for a HTTP POST request. Consider a service for uploading arbitrary files using HTTP rather than FTP (or scp, etc.). -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Inconsistent reporting of unused package variable initialized in init() but used elsewhere

2019-02-23 Thread Kurtis Rader
om this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscr

Re: [go-nuts] is it possible to run cgo -buildmode=c-shared dynamic library on main thread?

2019-02-25 Thread Kurtis Rader
main thread when called from a non-main thread. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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

Re: [go-nuts] is it possible to run cgo -buildmode=c-shared dynamic library on main thread?

2019-02-25 Thread Kurtis Rader
ad. I've worked a lot with C++ code that utilizes threads and which is loaded by a python program. But that doesn't involve anything like the Go M:N go routine to thread scheduler. There are probably subtleties in mixing the two languages that I'm not familiar with. -- Kurtis Rader Caretaker of the ex

Re: [go-nuts] Re: I found a very strange code that would cause deadlocks and blocking,why???

2019-02-28 Thread Kurtis Rader
orld" garbage collection the answer is "no" in as much as this behavior has nothing directly to do with garbage collection. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang

Re: [go-nuts] Channel Feature Suggestion

2019-02-21 Thread Kurtis Rader
r() { > // do work > > Select { > ch <- true: > go worker() // try to handover some jobs > default: > // max goroutine limit > // do them yourself > } > > // do remaining jobs > > // make way > <- ch > return &

Re: [go-nuts] How can race timing inject io.EOF into bufio.NewReader(os.Stdin) ?

2019-03-08 Thread Kurtis Rader
golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving email

Re: [go-nuts] protobuf and golang

2019-03-18 Thread Kurtis Rader
regardless of whether your CPU is little or big endian. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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

Re: [go-nuts] Re: Deferring a close that can fail

2019-03-20 Thread Kurtis Rader
e. But thinking you can do anything about the other failure modes, especially EINTR, is mistaken. See https://lwn.net/Articles/576478/ http://austingroupbugs.net/view.php?id=529 https://sourceware.org/bugzilla/show_bug.cgi?id=14627 -- Kurtis Rader Caretaker of the exceptional canine

Re: [go-nuts] Println output missing in Windows, but not Linux

2019-03-12 Thread Kurtis Rader
e 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. > For more options, visit https://groups.google.com/d/optout. > --

Re: [go-nuts] Is it practical to auto rearrange struct fields to reduce paddings in Go?

2019-02-06 Thread Kurtis Rader
nce if the layout is intended to minimize false cache sharing between CPUs. Obviously whether or not padding will be present also depends on the machine architecture. So the author may intend for that padding (or lack thereof) because it maximizes performance or some other metric on their platform. -- Kur

Re: [go-nuts] How to kill all open TCP connections?

2019-02-19 Thread Kurtis Rader
ll whatever API that command invokes) to short-circuit the TIME_WAIT and related states but that solution is worse than the problem, IMHO. You'll either need to figure out how to shutdown a jail environment with extant TCP connections or arrange to run `tcpdrop` after your app has exited. -- Kurtis

Re: [go-nuts] Re: How to kill all open TCP connections?

2019-02-19 Thread Kurtis Rader
t; Pretty sure by "key code" Wang meant a minimal test case that illustrates or causes the problem. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To u

Re: [go-nuts] Re: When initializing variables, copies of values are made?

2019-01-31 Thread Kurtis Rader
opriate "zero" value for its type. This is behavior is meant to address one of the major flaws of C/C++ where function (i.e., stack) local vars which are not explicitly initialized have a random initial value based on the content of the stack at that juncture. -- Kurtis Rader Caretaker

Re: [go-nuts] Re: Go vs C speed - What am I doing wrong?

2019-02-03 Thread Kurtis Rader
orders of magnitude more important than whether you have managed to shave every microsecond from its run time. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

Re: [go-nuts] floating point question

2019-04-15 Thread Kurtis Rader
t, "%.12g %08x%08x\n", f, ((int *))[0], ((int *))[1]); fprintf(stdout, "%.12g %08x%08x\n", h, ((int *))[0], ((int *))[1]); } -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Re: fatal error: 'config.h' file not found

2019-04-16 Thread Kurtis Rader
presumptive of you to expect random strangers to respond immediately to your request for an answer. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fr

Re: [go-nuts] guarantees on net.Conn and net.UDPConn Read

2019-05-12 Thread Kurtis Rader
nt to recv() with flags set to zero. You can't use it to read multiple packets with a single call. Nor can you use it to read a packet incrementally. At least on UNIX like platforms the excess bytes will be discarded. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- Yo

Re: [go-nuts] Re: How can stop a Read of net.Conn without closing it

2019-06-05 Thread Kurtis Rader
en the available UNIX like kernel APIs. So while I have not tested this using a program written in Go I would not expect it to work and the equivalent solution definitely does not work in other languages I use regularly. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank

Re: [go-nuts] Problems with Text Template

2019-06-14 Thread Kurtis Rader
form. On Fri, Jun 14, 2019 at 6:28 PM Yamil Bracho wrote: > Yes, I am using text/template... > > El viernes, 14 de junio de 2019, 19:07:24 (UTC-4), Burak Serdar escribió: >> >> >> Are you using html/template by any chance? >> >> If so, try text/template i

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-18 Thread Kurtis Rader
/31932945/does-go-have-something-like-threadlocal-from-java and https://github.com/golang/go/issues/21355 -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr

Re: [go-nuts] sudo ./main command throwing error

2019-06-25 Thread Kurtis Rader
ubuntu:~/Documents/goworkspace/src/poc$ echo $LD_LIBRARY_PATH > /usr/local/lib/syslog-ng > nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "g

Re: [go-nuts] Re: Proposal: disallow "fall through" to a labeled statement #32565

2019-06-12 Thread Kurtis Rader
falling thru to the next case block if you don't explicitly break from the block. A feature that does cause lots of bugs. Fortunately the designers of Go broke from C tradition in this regard. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message becau

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-23 Thread Kurtis Rader
nt? Is it an API version number? In any event your question is really about a specific build toolchain on a specific platform. And you didn't even bother to tell us what platform you are using. I'm guessing MS Windows but we shouldn't have to make such guesses. -- Kurtis Rader Caretaker of the exce

Re: [go-nuts] How to run a go method on multiple cores ?

2019-05-08 Thread Kurtis Rader
instantiates, and returns, a new instance of the "syslog-ng" engine then the two Go objects initialized by that call will be two independent instances of that engine. Assuming, of course, that your syslog-ng engine does not share state between distinct `**initialize_engine()` calls.* --

Re: [go-nuts] The strange behavior of defer

2019-05-20 Thread Kurtis Rader
a "defer" statement executes, the function value and parameters to the call are evaluated as usual and saved anew but the actual function is not invoked. To keep that from happening you need to use a lambda (or function literal): https://play.golang.org/p/9Avbf_Mwx4g -- Kurtis Rader Caretaker

Re: [go-nuts] Need help to make autocert working

2019-05-07 Thread Kurtis Rader
ust a few minutes to setup with a cert it automatically acquired from LetsEncrypt. It's written in Go. And it already has a rich set of plugins such as ipfilter <https://github.com/pyed/ipfilter> that I contributed an enhancement to. See https://caddyserver.com/ -- Kurtis Rader Caretaker of

Re: [go-nuts] Need help to make autocert working

2019-05-07 Thread Kurtis Rader
ery small and trivial to install and setup. It is also extremely efficient at serving static content (I use it with Hugo to serve static blog content). Again, don't reinvent the wheel. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message becau

Re: [go-nuts] Re: A question about A sync.Once implementation.

2019-05-07 Thread Kurtis Rader
ght grey color. Which makes it hard to read on a white background. Please don't use styled text that modifies the colors on a general purpose mailing list. Not everyone is using color preferences compatible with your preferences. -- Kurtis Rader Caretaker of the exceptional canines Junior and H

Re: [go-nuts] What happens to global vars when main() ends ?

2019-05-03 Thread Kurtis Rader
system will invalidate the page of memory containing that var and ensure the page is zeroed before giving it to another process. But that has nothing to do with the Go GC. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed

Re: [go-nuts] What happens to global vars when main() ends ?

2019-05-04 Thread Kurtis Rader
over if bugs in the program can be exploited by an adversary to exfiltrate the contents of its memory. A garbage collector is not designed to protect against such risks. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the G

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Kurtis Rader
l for this type of issue and I always use it if possible for debugging memory management bugs in C/C++ code. Unfortunately I don't know how to enable its use with cgo or even if it is possible. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are

Re: [go-nuts] rand seed using 'time.Now().Unix()' consequence mass common rand numbers, but using unixNano as the seed will not ,how to choose the rand's seed between 'time.Now().Unix()' and 'time.Now

2019-06-26 Thread Kurtis Rader
iew this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/ce0671c5-f2df-42d9-a7af-bdef939e6d6d%40googlegroups.com. >> >> > For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you

Re: [go-nuts] rand seed using 'time.Now().Unix()' consequence mass common rand numbers, but using unixNano as the seed will not ,how to choose the rand's seed between 'time.Now().Unix()' and 'time.Now

2019-06-26 Thread Kurtis Rader
eate a single RNG and use it every place you need a random number. You should probably be using `rand.Seed()` and `rand.Source()` rather than `rand.NewSource()` given your fundamental misunderstanding about how RNGs work. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You rece

Re: [go-nuts] rand seed using 'time.Now().Unix()' consequence mass common rand numbers, but using unixNano as the seed will not ,how to choose the rand's seed between 'time.Now().Unix()' and 'time.Now

2019-06-26 Thread Kurtis Rader
ialize a RNG more than once unless you are doing so to create a reproducible sequence of values. In which case you should be initializing it with a constant value rather than a pseudo-random value like `time.Now().Unix()`. -- Kurtis Rader Caretaker of the exceptional canines Junior and

Re: [go-nuts] rand seed using 'time.Now().Unix()' consequence mass common rand numbers, but using unixNano as the seed will not ,how to choose the rand's seed between 'time.Now().Unix()' and 'time.Now

2019-06-26 Thread Kurtis Rader
hat compiles and runs at https://play.golang.org. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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, se

Re: [go-nuts] recover from a unexpected fault address

2019-07-01 Thread Kurtis Rader
e web visit > https://groups.google.com/d/msgid/golang-nuts/7959bb0d-de87-49ae-828c-d3e02e062d7d%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/7959bb0d-de87-49ae-828c-d3e02e062d7d%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit

Re: [go-nuts] Tools or debug options for debugging 'Error in `bin/main': double free or corruption (fasttop)' in cgo

2019-07-14 Thread Kurtis Rader
on the web visit > https://groups.google.com/d/msgid/golang-nuts/70001fbc-9302-4e76-a270-d18b95664423%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/70001fbc-9302-4e76-a270-d18b95664423%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit htt

Re: [go-nuts] is -2147483648 the same as MinInt32

2019-04-21 Thread Kurtis Rader
m statement why didn't you just compare the value you're getting from your calculation for equality to MinInt32 to confirm they are equal? -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang

Re: [go-nuts] Go if else syntax .. suggested replacement

2019-04-24 Thread Kurtis Rader
7-L609 For those who don't want to follow those links this is the code from the first URL above: lc_unicodeliterals = quote=='u' ? 1 : quote=='U' ? 0 : !!(ast.locale.set & AST_LC_unicodeliterals); -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received

Re: [go-nuts] Some questions about go plugin

2019-04-25 Thread Kurtis Rader
a RPC (remote procedure call) mechanism. Then when you need to restart the plugin you simply kill and restart it. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] Parsing go.mod

2019-09-02 Thread Kurtis Rader
ituation you should explain why you need to parse a go.mod file. Especially since you seem to be asking something not already asked a thousand times. It is possible, perhaps likely, the reason you want to do this can be solved some other way. -- Kurtis Rader Caretaker of the exceptional canines Jun

Re: [go-nuts] how to merge different struct to one struct

2019-08-23 Thread Kurtis Rader
ection (assuming that approach was even viable). What exactly would be the point? If you need a data structure that can be composed at run time there are many options. Why does it need to be a Go struct? -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this m

Re: [go-nuts] html/template escaping problem

2019-09-09 Thread Kurtis Rader
-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/0c93e49c-1e8b-4617-baef-0848b57fde93%40googlegr

Re: [go-nuts] What is the memory order when select on multiple channels that one is closing and the other is receiving?

2019-09-08 Thread Kurtis Rader
ly, my argument is rigorous > No, it isn't. You need to learn a lot more about concurrency and race conditions. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

Re: [go-nuts] fork/exec /bin/bash: operation not permitted

2019-08-07 Thread Kurtis Rader
nuts/CAN4yCu-wxW6tfEcryOmkJUU6J3oVX6R3pHeOhpJFKsuReU%2BPhg%40mail.gmail.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "gola

Re: [go-nuts] Split a empty string will get a one element array?

2019-08-07 Thread Kurtis Rader
ing emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/19bfe1af-bf5f-4c54-9198-3d23f9bec14a%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/

Re: [go-nuts] app not compiling

2019-08-09 Thread Kurtis Rader
c%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/cfe0731e-660a-4292-be55-f831f648cbec%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are sub

Re: [go-nuts] Channels question

2019-09-29 Thread Kurtis Rader
ueues: https://golang.org/ref/spec#Channel_types. They *do not* have fan-out semantics. Only one goroutine reading the channel will receive the next value. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the G

Re: [go-nuts] using Go as a configuration file format

2019-09-23 Thread Kurtis Rader
arser and evaluator for the format in a different language. Which should always be possible for a config file format. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscri

Re: [go-nuts] Auto-renew letsencrypt cert with standard library code

2019-11-05 Thread Kurtis Rader
-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/dc40264f-5314-496b-9069-81acbf94701a%40googlegro

Re: [go-nuts] Are M always detached from P when syscall?

2019-11-15 Thread Kurtis Rader
you seem to think. And don't forget about CPU context switches. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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] Is anyone aware of a blocking ring buffer implementation?

2019-11-21 Thread Kurtis Rader
l ring buffer. Specifically with respect to when "writes" block. Am I misunderstanding something? Substituting an io.Pipe may be fine for the O.P.s specific situation but in general would not be AFAICT. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this

Re: [go-nuts] What is the meaning of the "go" line in go.mod

2019-12-11 Thread Kurtis Rader
I don't know if there is a more canonical answer in the official documentation but this seems to explain it reasonably well: https://www.reddit.com/r/golang/comments/b0b8k3/what_version_should_the_gomod_go_directive_be_set/ -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank

Re: [go-nuts] atomic.Add*() doesn't produce unique values

2019-11-29 Thread Kurtis Rader
y context needing a uniq ID. That makes it easier to abstract the generation of "unique" ints so that they satisfy other constraints (e.g., they must be even, odd, prime, etc.). -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because yo

Re: [go-nuts] why not heap.Pop return nil while h.Len is 0?

2019-10-10 Thread Kurtis Rader
s discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVjycg_%2BfGJvUzXrq4FARsOz45RTPSi2Fu3HFjDvfc5bg%40mail.gmail.com > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Goo

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

2019-10-04 Thread Kurtis Rader
lps, >> > > You can read the first comment in this thread for another use case of > priority-order > select block. > > >> >> -- >> Wojciech S. Czarnecki >> << ^oo^ >> OHIR-RIPE >> > -- > You received this message because you

Re: [go-nuts] How to invoke child 'go' process in playground?

2019-10-11 Thread Kurtis Rader
golang-nuts/30f33420-47d9-4fe7-8e39-980f8d5370db%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/30f33420-47d9-4fe7-8e39-980f8d5370db%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- Yo

Re: [go-nuts] implicit initialization in golang declarations?

2020-02-10 Thread Kurtis Rader
of this topic. I'll leave it to others to opine whether the implicit initialization is good style or whether the explicit initialization in your second example is preferable. Having said that, I don't see any reason to prefer the explicit initialization since it is 100% equivalent to the implicit initial

Re: [go-nuts] How to handle EINTR from syscall.Dup2

2020-02-28 Thread Kurtis Rader
network or remote file server in which case retrying is unlikely to succeed. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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] How to handle EINTR from syscall.Dup2

2020-02-29 Thread Kurtis Rader
tion is really what to do if close() fails with EINTR and > the answer is retry. > > The man page [1] explicitly says that Linux close(2) should *never* be > retried, not even on EINTR. > As I mentioned, there are plans to change close to return EINPROGRESS, > or even no error a

Re: [go-nuts] How to handle EINTR from syscall.Dup2

2020-02-29 Thread Kurtis Rader
int of returning EINTR is that the close did not happen. If the close was successful then there was no point in returning an EINTR failure. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Group

Re: [go-nuts] keep just 2 decimal places in a float64

2020-01-25 Thread Kurtis Rader
d stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/96528d64-a670-45ba-ad4c-0701dcd0d78d%40googlegroups.com > <https://groups.google.com/d/msgid/go

Re: [go-nuts] Re: keep just 2 decimal places in a float64

2020-01-25 Thread Kurtis Rader
RL you cited is another one to remember to cite when a FAQ about floating point values occurs :-) -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fr

Re: [go-nuts] types of slice indices and range operators

2020-02-02 Thread Kurtis Rader
e the incorrect assumption masked bugs in the code. The bugs were most often in unit tests but I found at least two bugs in the code being tested when I violated those "conventions". -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because

Re: [go-nuts] How to append all new messages in a slice?

2020-01-14 Thread Kurtis Rader
t; https://groups.google.com/d/msgid/golang-nuts/9211b53e-d3b2-4fdb-81a3-84bb757a585f%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/9211b53e-d3b2-4fdb-81a3-84bb757a585f%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the excepti

Re: [go-nuts] strange failure of golang.org/x/crypto/argon2.IDKey

2020-01-03 Thread Kurtis Rader
gt; email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/e39ef554-b764-4a90-b5a1-f5b1054dfed3%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/e39ef554-b764-4a90-b5a1-f5b1054d

Re: [go-nuts] channel synchronous, how to assure happens before ??

2020-01-06 Thread Kurtis Rader
the channel that would change the behavior of the program. Channel ops are what are known as memory barriers, and thus don't allow ops before or after the channel op to be reordered before or after the op. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received thi

Re: [go-nuts] Connection Refused while scraping the data

2020-03-06 Thread Kurtis Rader
Engineering: dial tcp 169.44.165.69:443: > connect: connection refuse > > The web site you are accessing thinks you are executing a DDOS attack or are otherwise violating their terms of service. This has nothing to do with the Go language. You need to rate limit your requests of that site

Re: [go-nuts] Getting this error: compile: version "go1.13.7" does not match go tool version "go1.12.10"

2020-04-09 Thread Kurtis Rader
13.7" does not match go tool version "go1.12.10" > > >From https://github.com/golang/go/issues/22814: "The error is telling you that you have a weird mix of Go versions on top of one another, or mixed up together in your $PATH." What does "go env" report? Es

Re: [go-nuts] go commands hang indefinitely

2020-04-09 Thread Kurtis Rader
ead -fno-caret-diagnostics -Qunused-arguments > -fmessage-length=0 > -fdebug-prefix-map=/var/folders/6c/h189_j9s6tdbj_kw24g2kvchsk0515/T/go-build628238008=/tmp/go-build > -gno-record-gcc-switches -fno-common" > > -- > You received this message because you are subscribed to the Google Group

Re: [go-nuts] Re: Issue with go and mongodb

2020-04-08 Thread Kurtis Rader
ooglegroups.com > <https://groups.google.com/d/msgid/golang-nuts/079430fd-01cb-4273-9dab-0532ae9b210c%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed t

Re: [go-nuts] Intercepting field access and method call

2020-04-11 Thread Kurtis Rader
nguage like Python, which I love, but that isn't the Go model of behavior. This also seems like a http://xyproblem.info/ question. What is it you really want to do? Are you trying to mock something for a unit test? -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You receiv

Re: [go-nuts] Equivalent of os.Args but on custom input

2020-04-20 Thread Kurtis Rader
.google.com/d/msgid/golang-nuts/CAKu9hcexcyMdjPaWUNd84q0Yhs_PoHCe-jczvhC04vqiU7LPwQ%40mail.gmail.com > <https://groups.google.com/d/msgid/golang-nuts/CAKu9hcexcyMdjPaWUNd84q0Yhs_PoHCe-jczvhC04vqiU7LPwQ%40mail.gmail.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Careta

Re: [go-nuts] Does os.exec work ?

2020-03-25 Thread Kurtis Rader
stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/f9b34d9d-985f-4cbf-9a92-d3d46d72cf55%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts

Re: [go-nuts] Can someone please explain http.HandlerFunc() ?

2020-04-03 Thread Kurtis Rader
converts one function type into another. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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 e

Re: [go-nuts] Is this AMQP 0.9.1 library updated?

2020-04-28 Thread Kurtis Rader
lease suggest, thanks. > My recommendation is to open a GitHub issue at the link you provided. It looks like the project is active. Recently opened issues have been closed. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscri

Re: [go-nuts] URL parsing with special characters.

2020-04-30 Thread Kurtis Rader
xt": invalid URL > escape "%ve"` > That is not a valid URL. The Python urllib.parse module explicitly ignores invalid percent encodings and treats the % in that case as a literal percent-sign. That URL should be written as `.../file%25ver3.txt`; assuming you want a literal pe

Re: [go-nuts] getting values from memory addresses within another process...

2020-04-30 Thread Kurtis Rader
essential promise to prevent of every OS >> other than MS DOS, original MacOS, and practically the threads in shared >> memory model of Smalltalk & MP Mathematica. >> >> On Thu, Apr 30, 2020 at 7:13 PM Kurtis Rader >> wrote: >> >>> On Thu, Apr 30, 2020

Re: [go-nuts] getting values from memory addresses within another process...

2020-04-30 Thread Kurtis Rader
ckoverflow question you linked to is bollocks. The questioner apparently wants to read the virtual memory of other processes. Yet they accepted as correct an answer that does no such thing. The "answer" only reads arbitrary virtual memory of the Go process. -- Kurtis Rader Caretaker of th

Re: [go-nuts] getting values from memory addresses within another process...

2020-04-30 Thread Kurtis Rader
ot;Cheat Engine" without providing a link to a document that explains what you mean by that term. I'm guessing (emphasis on "guessing") that you are referring to https://en.wikipedia.org/wiki/Cheat_Engine -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank --

Re: [go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread Kurtis Rader
l you want to do is download the source to review it just do "git clone https:// github.com/robaho/go-trader". And if that doesn't work you need to figure out what is wrong with your connection to the Internet. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank --

Re: [go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread Kurtis Rader
go build" or something similar. My suggestion to run "git clone" was predicated on you wanting to just review the source code; not build it. If you want to be able to build it, and import it into other projects, then you need to figure out why "go get" doesn't work on your system.

Re: [go-nuts] handling constant of maps

2020-05-04 Thread Kurtis Rader
> > > Since Golang doesn't support the Constant of struct, what could be your > approach? > > Any suggestion is really appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from

Re: [go-nuts] High Performance REST API Framework.

2020-05-09 Thread Kurtis Rader
using it rather than Apache or Nginx. It's not clear what you are looking for since "web framework" is a nebulous term. See https://caddyserver.com/docs/v2-upgrade for how the new Caddy v2 implementation makes Websocket's easier to use. -- Kurtis Rader Caretaker of the exceptional canine

Re: [go-nuts] Failed to schedule cron job at night

2020-05-08 Thread Kurtis Rader
; time. > > for day time it works properly . > > my cron expression is 0 15 3 * * * means at midnight 03:15 AM daily > I don't see what this has to do with Go but the problem is your crontab spec says to run the job at 15:00 hours on the third day of each month. Remove the l

Re: [go-nuts] suspect or: role != admin || role != superadmin

2020-05-11 Thread Kurtis Rader
web visit > https://groups.google.com/d/msgid/golang-nuts/ef2e9e72-0f14-49d9-99fd-950bab0b5a41%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ef2e9e72-0f14-49d9-99fd-950bab0b5a41%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Careta

Re: [go-nuts] Issue with handler

2020-03-20 Thread Kurtis Rader
er words, please post plain text or a link to play.golang.org. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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] Any way to exclude testcase(s) from 'go test'?

2020-08-31 Thread Kurtis Rader
ne a 'negation' pattern" is preferable to using `-tags` to define a "positive pattern" for tests to be run. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Any way to exclude testcase(s) from 'go test'?

2020-08-31 Thread Kurtis Rader
option to optionally enable it. For example, `go test -tags test7978` and `// +build test7978` at the top of the test file you want run only when explicitly enabled. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the

Re: [go-nuts] add method to interface via reflect

2020-09-10 Thread Kurtis Rader
lem rather than the solution. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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] zombie parent scenario with golang

2020-09-10 Thread Kurtis Rader
ep(5); >> >> > printf("Exit from main process\n"); >> >> > pthread_exit(0); >> >> > } >> >> > >> >> > kkk@ ~/mycode/go () $ ./a.out & >> >> > [1] 108418Main thread. Sleep 5 secondsThe is new thread

Re: [go-nuts] zombie parent scenario with golang

2020-09-10 Thread Kurtis Rader
.out > 43635 43638 pts/29 00:00:00 a.out > > Due to the detached thread still executing the process left in defunt > state. > > Thanks for checking on this, I will see if we can reproduce my situation > on a newer kernel. > > Thanks & Regards, > Uday Kiran >

Re: [go-nuts] zombie parent scenario with golang

2020-09-10 Thread Kurtis Rader
process has a bug (the most likely explanation) or your OS has a bug. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

Re: [go-nuts] Asynchronous preemption

2020-09-02 Thread Kurtis Rader
that a Go program will need to disable async preemption 100% of the time. If you have a situation that does need to always disable it you should probably open a bug report. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscri

Re: [go-nuts] Any way to exclude testcase(s) from 'go test'?

2020-09-02 Thread Kurtis Rader
bug you linked to is resolved you simply remove the custom build tag. You seem to have an aversion to using build tags for this problem, which I do not understand, while suggesting that introducing an equivalent mechanism is preferable. i don't understand why. -- Kurtis Rader Caretaker of th

Re: [go-nuts] How to use build tags with go run

2020-09-13 Thread Kurtis Rader
b3e6c-1bea-447c-9311-5a357f5a2e57n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscri

  1   2   3   4   >