11: w.Annotations
undefined (type V has no field or method Annotations)
Name and Annotations are methods available in both the Deployment and the
StatefulSet structs.
Thanks.
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are subscribed to the Google Groups
p84/unsubscribe.
> To unsubscribe from this group and all its topics, 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/3b3d0712-f7ee-4368-8768-bcf649b0ba45n%40googlegroups.com
>
is the recommended way now.
Also, we are in GCP and so if there is some easy hack to get this deployed
in GCP via a single click or some such, that will also be good. Any
pointers ?
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are subscribed to the Google
>
> if `ws.Read` returns after a reasonable timeout, you can perform a
> non-blocking receive on the quit channel to see if it has been
> closed/something has been sent to it:
>
> select {
> case <-quit:
> break
> default:
>
> I had the same situation and this worked perfectly:
>
> replace mylib => ../mylib
>
> If it doesn't - check paths, name of the "mylib" module, etc
Thanks. It worked. I strongly feel like I tried the same yesterday and
it didn't work, but probably mis-typed the name in the module.
--
You receiv
> Then why are they in a monorepo?
>
> AFAIK monorepos for strictly controlled dependenies and easier refactorings.
>
> If two part needs different versions for something common, then they should
> live and evolve separately.
This is a subset of a larger mono-repo. This repo has sources for
abou
> Use one go.mod pee repo.
That won't be possible. It is a monolithic repo. svc1 and svc2 may
need two different versions of a common dependency.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving e
> You could try moving mylib to your $GOPATH/src/, and
> import "mylib"
> in the services.
I tried that but could not get `go run cmd/svc1.go` from trying to
checkout a non-existent url (for the `mylib`). Can you share the
contents of the `go.mod` file for svc1 and mylib ?
--
You received th
ts/09bb6e93-acd7-4fcd-8178-fb99a2e56028%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/09bb6e93-acd7-4fcd-8178-fb99a2e56028%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Sankar P
http://psankar.blogspot.com
--
You received this message
sage because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/cs1DE0jOOfA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> gola
n Mon, 15 Apr 2019 at 11:32, Sankar P wrote:
>
>> Playground url: https://play.golang.org/p/tDT7xCJJ_XN
>>
>> திங்., 15 ஏப்., 2019, பிற்பகல் 4:01 அன்று, Sankar <
>> sankar.curios...@gmail.com> எழுதியது:
>>
>>> I have the following go code:
>>>
ics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe fro
uot; // Invalid day
>> day := "123819283" // Invalid day
>>
>> }
>> ```
>>
>> I want to evaluate if the string variable `day` is one of the valid
>> permitted values for the [Ww]eekday custom type. What is the recommended /
>> right go w
es, to work with go
>> modules ? I tried reading through
>> https://github.com/golang/go/wiki/Modules but I could not find out any
>> recommended way for this. Any help on how I can do this ? Do I need to
>> create `cmd` or `src` folders in our git repo ? OR do we need to do
>>
>> If someone can explain the output I would be thankful. It feels like a
>> bug to me, but I am sure that I am only misunderstanding and it may not be
>> a bug.
>>
>> Thanks.
>>
>>
>> 2018-05-23 11:45 GMT+05:30 Sankar P :
>>
>>> Use an arr
sure that I am only misunderstanding and it may not be a
bug.
Thanks.
2018-05-23 11:45 GMT+05:30 Sankar P :
> Use an array instead of a slice. An array has a fixed size and can be used
>> as a key to a map
>>
>> https://play.golang.org/p/xxxmrwpx08A
>>
>
>
var arr [][]int
>> for mem := range m {
>> fmt.Println("Appending: ", mem[:])
>> arr = append(arr, mem[:])
>> }
>> fmt.Println("Final arr is:", arr)
>>
>> the output is:
>>
>> Appending: [-1 0 1]
>> Appending:
so. The
"Appending" and the "Final arr" statements have different values.
--
Sankar P
http://psankar.blogspot.com
--
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
too after I feel satisfied with the code.
2018-05-14 20:54 GMT+05:30 Sankar P :
> 2018-05-14 20:39 GMT+05:30 :
>
>> They might have been looking for something like this:
>>
>> github.com/psankar/network-monitor
>> package monitor code files
>> cmd/
>&
s.
>>
>> Sankar
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/golang-nuts/SpoC7siQrS8/unsubscribe.
> To unsubscri
dividually, with the review comments.
>>
>> Thanks.
>>
>> Sankar
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google
;<< req.Form is nil
>> }
>> }
>>
>> What am I doing wrong ? I do get the POST request but without the
>> password fields as part of the POST body. Any help ?
>>
>> Thanks.
>>
> --
> You received this message because you are su
is message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/golang-nuts/HxLT6NlzKlY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
Hey Googlers,
Any help on this ? I would love to choose GCE, but will have to go with AWS
if there are no updates here. Thanks.
31 ஜன., 2018 முற்பகல் 12:08 அன்று, "Sankar"
எழுதியது:
> Hi
>
> When is Golang support for Cloud functions in GCP expected ? I am starting
> off a new project and would
quot;conventional" environment for your programs. There are some tradeoffs
> compared with App Engine Standard, but it should be easier to stay portable.
>
> David
>
> [1]: https://cloud.google.com/appengine/docs/flexible/go/
> writing-application-logs
>
>
> On Sat, Nov 4, 2017,
, for one, though wish that there was a simpler way.
2017-11-04 12:47 GMT+05:30 Gulácsi Tamás :
> Sth. along https://play.golang.org/p/BwlbkxMLdw ?
>
> Sankar P ezt írta (időpont: 2017. nov. 4.,
> Szo, 8:10):
>
>> There is no log.SetWriter in either the builtin log package or
o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are su
t; log.SetOutput(appengine.DefaultLogger)
>> }
>>
>> in my main file ? This way, I get to make my code not locked to google
>> cloud and also can deploy existing code which uses log already.
>>
>> Any pointers ?
>>
>> Thanks.
>>
> --
> You received th
nd all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"golang-nuts&quo
oo complex expression, not the line length per se. My preferred
> solution would be to split it up with a variable or two. I don't think
> there is a tool for that, it requires human consideration.
>
> //jb
>
>
--
Sankar P
http://psankar.blogspot.com
--
You received this
e some unknown problems (performance, networking, etc.) which
>> I do not want to end up debugging.
>>
>> Any advises or suggestions or links that would help me ? Thanks.
>>
>> Sankar
>>
> --
> You received this message because you are subscrib
custom struct) ?
> >
> > Or is this a bug, or do I misunderstand anything ?
>
> The issue is that you have defined MarshalJSON as a method with a pointer
> receiver, while the JSON marshaller will access it through an interface
> value that is not addressable. Instead, de
Thank you so much Axel Wagner. I was able to get everything working, once I
added the A record. Everything worked so magically together correctly :)
2017-06-07 23:33 GMT+05:30 Axel Wagner :
> On Wed, Jun 7, 2017 at 7:22 PM, Sankar P
> wrote:
>
>>
>> 2017-06-06 22:52
veryone for the responses.
--
Sankar P
http://psankar.blogspot.com
--
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...@google
, please see: https://stackoverflow.com
>> /questions/44321199/golang-extract-unique-key-value-from-a-
>> key-value-pair-string-using-regex
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubs
Sankar
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/golang-nuts/sTsDhJLKTqU/unsubscribe.
> To unsubscribe from this g
/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> golang-nuts...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Sankar P
>> http:/
legroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
Sankar P
http://psankar.blogspot.com
--
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 i
om this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
Sankar P
http://psankar.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"
cognized []byte `json:"-"`
>> }
>>
>> Why is the A field here a pointer instead of a normal float64 ?
>
> Because proto2 records not only the value of each field, but also
> whether the field is present or not. Using a pointer is how the Go
> implementa
2016-07-11 15:34 GMT+05:30 Sankar P :
>> I don't know if it does what you want, but have you looked at
>> https://godoc.org/rsc.io/pdf ?
>
> It seems to be unmaintained. I tried loading a complex PDF with plenty
> of tables and it hung infinitely on Content() call i
sage because you are subscribed to a topic in the Google
> Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/8NisCMXjQIw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> g
> I don't know if it does what you want, but have you looked at
> https://godoc.org/rsc.io/pdf ?
It seems to be unmaintained. I tried loading a complex PDF with plenty
of tables and it hung infinitely on Content() call in the first page.
I lost interest after that. Thanks.
--
Sa
>> "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.
>
>
--
Sankar P
http://psankar.blo
44 matches
Mail list logo