It sounds as if you might be running your "REST endpoint" program from an
interactive shell (i.e., a terminal) and sending SIGTERM by pressing
something like Ctrl-C. Interactive job control, which includes how signals
generated by a "terminal" are handled, is a complex topic. So we need to
know how
Hi,
I've got a REST endpoint coded in go and it communicates with various child
processes to get it's work done.
I've used
// Set up to handle signals so we can stop when asked
done := make(chan os.Signal, 3)
signal.Notify(done, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
and
<-done
to
Nevermind, I forgot about function return values.
Difficult to infer them without specifying them, isn'it?
Sorry... should have thought better.
On Wednesday, March 24, 2021 at 12:23:12 AM UTC+1 atd...@gmail.com wrote:
> Mmmh, :/ depends. What is the type of IntMin for the compiler in your
> exa
can...@google.com once said:
> After review, permanent bans were given to multiple individuals, with no
> possibility for appeal. Further corrective actions like temporary bans and
> final warnings are being deliberated, pending further investigation.
Where is the moderation log?
Anthony
--
On Tuesday, March 23, 2021 at 9:11:13 AM UTC-7 Ge wrote:
>
> Hi,
> Recently I encountered a problem which seems to be related to SSA
> optimization
> and feels hard to figure out what some SSA operation means.
>
> Code:
> case1:
> func main() {
> var x int
> go func() {
> for {
Mmmh, :/ depends. What is the type of IntMin for the compiler in your
example? The same as Min?
If not, it is basically defining a regular function out of a generic
function definition.
So it is merely about constraining the type parameter further to be of
specific type int.
A simple closure w
I recently hit a little issue with go.mod versioning that's confusing me.
My go.mod is straightforward:
https://github.com/deepmap/oapi-codegen/blob/master/go.mod
One of the packages in there is kin-openapi at v0.47.0:
github.com/getkin/kin-openapi v0.47.0
We briefly had some code in the repo whi
On Sun, Mar 21, 2021 at 1:22 PM Roman Leventov wrote:
>
> I've created a list of possible concurrency-related bugs and gotchas in Go
> code: https://github.com/code-review-checklists/go-concurrency.
>
> The idea of this list is to accompany
> https://github.com/golang/go/wiki/CodeReviewComments
On Tue, Mar 23, 2021 at 3:19 PM atd...@gmail.com wrote:
>
> Since, we also know the type of v, It would be infered from it.
>
> There is no variance, no dependent type... Meaning that the type of a Go
> variable does not change.
> So the constraints do not change midway through the program, inclu
Since, we also know the type of v, It would be infered from it.
There is no variance, no dependent type... Meaning that the type of a Go
variable does not change.
So the constraints do not change midway through the program, including type
names/definitions.
It does however require to have some
On Tue, Mar 23, 2021 at 2:17 PM atd...@gmail.com wrote:
>
> Quick question...
>
> Why do we need brackets to define a parametered function, struct etc...?
>
> Why not change Go kinds to accept either a type (would produce a regular,
> function, structs, etc) or a new type parameter object that wo
Quick question...
Why do we need brackets to define a parametered function, struct etc...?
Why not change Go kinds to accept either a type (would produce a regular,
function, structs, etc) or a new type parameter object that would implement
the constraints (would produce a generic function defi
On Tue, Mar 23, 2021 at 9:41 AM Shiva wrote:
>
> Trying to pick this up where it was left, we have the list of files
> *_linux.go, *_linux.s but not all of them have the build statements, do we
> create new nsx files only for those which have build statements in them or
> for all of those files
Trying to pick this up where it was left, we have the list of files
*_linux.go, *_linux.s but not all of them have the build statements, do we
create new nsx files only for those which have build statements in them or
for all of those files?
On Sunday, June 7, 2020 at 2:38:09 AM UTC+1 Ian Lanc
Hi,
Recently I encountered a problem which seems to be related to SSA
optimization
and feels hard to figure out what some SSA operation means.
Code:
case1:
func main() {
var x int
go func() {
for {
x++ //no matter "-N" compile flags is specified or
not,
On page https://golang.org/doc/tutorial/getting-started#call :
step 1.3. : visit https://pkg.go.dev/rsc.io/quote#pkg-index
step 1.4. instructs "At the top of this page, note that package quote
is included in the rsc.io/quote module."
How can I "note that package quote is included in the rsc.io/quo
On Tue, Mar 23, 2021 at 3:02 PM 'can...@google.com' via golang-nuts <
golang-nuts@googlegroups.com> wrote:
> The last two factors also necessitate a public response, to assure those
> who witness unacceptable behavior, particularly in public places, that
> appropriate and fair corrective action wa
Over the last few days, multiple reports were received at cond...@golang.org
regarding
public conduct on golang-nuts, as well as conduct in private channels.
After review, permanent bans were given to multiple individuals, with no
possibility for appeal. Further corrective actions like tempor
18 matches
Mail list logo