unused functions and not include them in resulted
binary? (if i don't use json Marshal/Unmarshal full json package not
included in my binary)
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-n
you much time. :)
>
> The official linker does try to remove many unused functions.
> Unused functions really need more time to compile.
>
> On Saturday, October 6, 2018 at 10:08:43 AM UTC-4, Vasiliy Tolstov wrote:
>>
>> Hi!
>> I have some data that can be formatted
?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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 opti
пн, 22 окт. 2018 г. в 16:02, Jan Mercl <0xj...@gmail.com>:
>
> On Mon, Oct 22, 2018 at 2:35 PM Vasiliy Tolstov wrote:
>
> > Does reading this 4 bytes to uint32 and use math.Float32frombits looks
> > right?
>
> It does not look right, see
> https://en
Does it possible to avoid conversation and works only with fixed point
(if this can bring performance speedup)?
пн, 22 окт. 2018 г. в 16:13, Vasiliy Tolstov :
>
> пн, 22 окт. 2018 г. в 16:02, Jan Mercl <0xj...@gmail.com>:
> >
> > On Mon, Oct 22, 2018 at 2:35 P
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.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
&qu
based
services) and as i see examples - sometimes compilcated.
Does anybody knows alternatives?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop rec
agger-to: https://github.com/Parquery/swagger-to
>
> Cheers Marko
>
> Le mar. 23 oct. 2018 à 19:02, Vasiliy Tolstov a écrit :
>>
>> Hi! I'm looking for new project some framework to write microservice based
>> app.
>> I'm found micro and go-kit. But mi
ср, 24 окт. 2018 г. в 19:52, Michael Jones :
>
> https://en.wikipedia.org/wiki/Q_(number_format) says it all.
>
> you can use fixed point all the way...just shift after multiplies and before
> divides and use double-width (int32) or wider math.
>
Thanks!
--
Vasiliy Tolst
Hi all.
I have bunch of tasks that have predictable memory and cpu usage.
I need to run them on some nodes in optimal case - fillup one node by one.
Some task not needs to be run on the same node.
Does anybody knows package that already provide ability to select nodes
with this requirements?
--
Y
info about solving bin
packing/knapsack for such cases?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
Thanks, Jason!
вс, 16 дек. 2018 г. в 06:00, Jason E. Aten :
>
> search for branch-and-bound; e.g.
> https://www.geeksforgeeks.org/0-1-knapsack-using-branch-and-bound/
>
> On Saturday, December 15, 2018 at 5:01:51 PM UTC-6, Vasiliy Tolstov wrote:
>>
>> Hi! i have ta
Hi, I'm try to find mutual tls example in go, but can't find simple example
that uses crypto/tls. I need server that for some http handler for user
request with token returns tls cert for communication, and client that uses
this cert to communication after it returned from request. Ideally with
abi
,
> http.Handler), 0),
> }
>
> log.Fatal(srv.ListenAndServeTLS(*publicCertificate, *privateKey))
>
>
> 2. Look into http.Request, under TLS.PeerCertificates array
> --
> -- Aldrin Leal, / https://ingenieux.io/about/
>
>
> On Sun, Apr 21, 2019 at 7
пн, 22 апр. 2019 г. в 20:06, Timothy Raymond :
>
> I believe Liz Rice covered this in her GopherCon 2018 talk on TLS
> connections: https://www.youtube.com/watch?v=kxKLYDLzuHA
>
Thank you this is very helpful for me.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You r
iting tcp connections?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
t
https://github.com/rcrowley/goagain/issues/12 cant handle multiple listeners
https://godoc.org/github.com/facebookgo/grace/gracenet does not
support close the listener
https://github.com/fvbock/endless works with http , but i don't need
http server.
--
Vasiliy Tolstov,
e-mail: v.tols..
ata.
Does it possible to write function that does not have additional allocations?
And does it possible to write it in portable way (i mean path separator).
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nu
Thanks!
2017-11-10 3:52 GMT+03:00 krolaw :
> func oid2filepath(cfg *Config, oID uint64) string {
>return fmt.Sprintf("%s%c%x%c%016x", cfg.WorkDir, filepath.Seperator,
> oid2vid(oID), filepath.Seperator, oID)
> }
>
> On Friday, 10 November 2017 09:58:03 UTC+13, Vas
4 1000201 ns/op48 B/op1 allocs/op
>
> Playground: https://play.golang.org/p/DnGoM8PYd6
>
> Peter
>
>
> On Thursday, November 9, 2017 at 3:58:03 PM UTC-5, Vasiliy Tolstov wrote:
>>
>> Hi. I have server that read/write data to many files (each is
that can be read/write/close/seek/sync...
Does somebody already knows such package or knows how to best write it ?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
es on local fs, sometimes with different offsets. Does i need
fd cache for such use-case?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop r
;m do
os.OpenFile because passed path copied to file struct. Does it
possible to eliminate such allocations?
In my program i don't often do stat syscalls.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
&
2017-12-14 9:28 GMT+03:00 Dave Cheney :
> Does your profiling suggest these allocations are causing latency?
>
Hmm this is missing part =). How can i understand what causing latency
if i use http prof?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because y
If I have something like this, but I know that client sends fixed sized
message header 48 byte and variable sized body based on data in header, and
want to minimize allocations. Does I need to use bufio?
Now I'm use goleveldb util package for reusable byte slice.
19 Дек 2017 г. 11:22 пользователь
ut have no luck =(.
I know about bcache, lvm cache, flashcache and other solutions, but i
need pure go and pure application solution.
Does somebody already thinks about such problems or know some link
where i can find ideas?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You receiv
25 Дек 2017 г. 13:54 пользователь "Jan Mercl" <0xj...@gmail.com> написал:
On Mon, Dec 25, 2017 at 10:11 AM Vasiliy Tolstov
wrote:
What about a write ahead log? https://godoc.org/github.com/cznic/file#WAL
I know about this package, but I have many files like 3-5 and
cre
t; You'll have to cache the file descriptors anyway.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
Hi! May be i miss something, how can i get ca cert fingerprint in go via
builtin packages if i have client cert issued via this ca?
--
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,
Also if i use own root ca to issue intermediate cert that used for issue
client certs. How can i check that intermediate ca is issued by root ca?
вт, 30 апр. 2019 г., 10:48 Vasiliy Tolstov :
> Hi! May be i miss something, how can i get ca cert fingerprint in go via
> builtin packages if
ed CA cert, and trust all intermediate cert from it.
Also trust all client certs from it intermediates.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
r?
>
Thanks looks fine, but does i need to always have root ca to trust
intermediate certs? Or if i have custom validation in tls.Config i
don't need it?
For example i'm pass root ca fingerprint to service, does it possible
to trust all intermediates if they issued by root CA that h
ions/130847/how-tls-certificate-chain-is-verified
>
>
Thank you for help. Now i think that i have all needed pieces and next
steps is to write simple code that acts like i need =)
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the
available ip.
So if this function not fills the slice , i need to use different
method to get all addresses.
Can you helps me?
P.S. Error not easy to reproduce in my case, so i can't easy check
does InterfaceAddrs slice filled in case of error.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
чт, 16 мая 2019 г. в 19:04, :
>
>
>
> On Wednesday, May 15, 2019 at 5:00:26 PM UTC-4, Vasiliy Tolstov wrote:
>>
>> Hi! I have error from net.InterfaceAddrs() like route ip+net: no such
>> network interface
>> i think that error happened because i have do
).Pointer()).Name(),
".")
return parts[len(parts)-2] + "." + parts[len(parts)-1]
it returns string "AccountService.Create"
Does it possible to get this not using runtime? only via reflect and
may be without strings ?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
чт, 11 июл. 2019 г. в 00:27, Ian Lance Taylor :
>
> On Wed, Jul 10, 2019 at 1:40 PM Vasiliy Tolstov wrote:
> >
> > Hi! i have interface like
> >
> > type AccountService interface {
> > Create(context.Context) error
> > }
> >
> > if i ne
in use when start by other service.
How can i'm avoid such errors and not specify ports by hand?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
back into the store for the next micro-service to use.
>
> I think etcd [1], may be a good use case for this.
I think about it, but then we pass to kernel port 0, it allocates free
port, but this is not mean that after millisecond this port not be
used by other service
--
Vasiliy Tolstov
Hi. I have reflection based question.
I need to store type of struct passed to func and later based on this
stored type reconstruct empty needed struct.
Does this possible ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
Thanks, something like this, but i need to store type in string or []byte
in db, and based on this create new empty struct.
сб, 20 июл. 2019 г., 10:55 Jan Mercl <0xj...@gmail.com>:
> On Sat, Jul 20, 2019 at 9:28 AM Vasiliy Tolstov
> wrote:
>
> > Hi. I have reflection based
Thanks for link doc. It is very useful. Now i think that i'm try to
use protobuf Any (as all of my struct are protobuf proto.Message.
As i understand via protobuf i can register needed Req/Rsp empty
messages via Any, and later unmarshal message to this empty structs.
--
Vasiliy Tolstov,
e
Hi!. I found many mitmproxy tools in go, but can't find any that able
to cache generated certificates. I think that this is saves compute
time.
Also i want to modify it to work with uBlock to deny unneeded requests.
Do you know anything about this?
--
Vasiliy Tolstov,
e-mail: v.tols...@self
) this is very helpful, or maybe somebody
knows how to convert?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
ry useful, but does it possible to specify multiple url for
the same object? For example i have two servers with identical content
and want to serve it via fs. If one server is down all works from
other.. Also suitable for load balancing...
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
Hi! I need oauth2 server package for go. I found some of them on godoc.org
https://godoc.org/github.com/RangelReale/osin and
https://godoc.org/github.com/go-oauth2/oauth2
Does anybody already tried this packages and have some experience?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You
Also note that i want to connect to such server from angular2 app via
angular2-oauth2 package providing username and password and get after
auth on backend client token (to use with http auth bearer)
2017-01-10 22:30 GMT+03:00 Vasiliy Tolstov :
> Hi! I need oauth2 server package for go. I fo
Thanks for link.does this library good for my use-case?
Also does it possible to have server without static assets?
17 Янв 2017 г. 18:55 пользователь "Brandon Philips"
написал:
Hey Simon-
Any reason you aren't using Dex? https://github.com/coreos/dex
Brandon
On Wed, Jan 11, 2017, 12:08 PM Si
lf or else we will start using iptables.
Why not create own listener that before accept check client ip?
--
Vasiliy Tolstov,
e-mail: v.tols...@yoctocloud.net
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this gro
, but also i need disk cache.
Does it possible to add disk caching to groupcache?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emai
About cache purge/delete i found answer, that i can add to cache key
TTL via timestamp or something like this. What about disk cache?
2017-01-30 16:15 GMT+03:00 Vasiliy Tolstov :
> Hi! I have two servers that acts like frontend to openstack swift backends.
> So in go i want to write fronte
cznic/ql have own lexer for SQL and it syntax very similar.
31 Янв 2017 г. 16:33 пользователь написал:
> Hello,
>
> I am the creator of rqlite (https://github.com/rqlite/rqlite), a
> distributed relational database built on SQLite.
>
> I'm looking for a lexer and parser for SQL -- specifically S
Does it possible to compile using newlib
(https://sourceware.org/newlib/) for static binary? Does someone try
to do that ?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe
runtime/cgo package expects to be able to
> call functions like pthread_create that, last time I looked, newlib
> does not provide.
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts"
user POV.
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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...@googlegroup
141
and
https://github.com/vtolstov/go-libvirt/blob/master/client/rpc.go#L246
what can i do to fix this timeouts ?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this g
interface
methods ?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
manually, resending the parts when the writes only
> partially complete.
Ok, thanks! I'm try to write to buffer and use simple net.Conn Write.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-
oot@143177 ~]#
[root@143177 ~]# [root@143177 ~]# [root@143177 ~]#
custom ReadWriter when Read returns recieved data immediately if it
present, writer blocks while write data and returns when all data in
buffer writed.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message b
try to profile code, may be is have many big errors that
can be solved firstly...
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving ema
2017-06-18 19:47 GMT+03:00 Vasiliy Tolstov :
> Hi. I'm writing vnc server implementation (mostly for proxy between
> client and real server).
> My first version can only raw encoding, but now i'm writing TightPng
> support and check results. As i see when i'm connect to
)
}
}
but i'm have error
panic: reflect: reflect.flag.mustBeAssignable using unaddressable
value [recovered]
panic: reflect: reflect.flag.mustBeAssignable using unaddressable value
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed t
some text
after some changes i have reflect: call of reflect.Value.NumField on ptr Value
so reflect.New(sfield.Type.Elem()).Elem() returns pointer to needed
struct, but if i'm use reflect.Indirect i have nil variable and can't
do NumField on it
пн, 9 дек. 2019 г. в 12:30, Vasil
Nevermind. I found the error
пн, 9 дек. 2019 г. в 12:30, Vasiliy Tolstov :
>
> Hi! I'm stuck at reflection based struct assignment.
>
> example struct
> type TestStruct struct {
> Slice []*string
> }
>
> func TestReflect(t *testing.T) {
> s1 := "one&quo
scribed 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nut
вт, 10 дек. 2019 г. в 00:49, Dan Kortschak :
>
> On Mon, 2019-12-09 at 14:57 +0300, Vasiliy Tolstov wrote:
> > Nevermind. I found the error
>
> https://paulcunningham.me/nevermind-found-answer/
>
Ok, sorry, i'm try to provide answer for next time =)
--
Vasil
o.mod' , collect all dirs and run go test for all of
them. Is it possible to have something less ugly?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this grou
So this is impossible with per package modules in one repo?
вс, 19 янв. 2020 г. в 02:39, Vasiliy Tolstov :
>
> Hi! I have one repo with multiple packages. For each package i have
> dedicated go.mod (this is a requirement because repo is collection of
> plugins with many deps).
>
ed in readme go module
usage not helps).
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golan
;, msg)
i'm allocate memory.
I don't want to guard all calls to check enabled log level to
avoid allocation. How can i do zero allocation log in such case?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google G
пн, 9 мар. 2020 г. в 19:41, andrey mirtchovski :
> to avoid allocations you have to hint at the type of what you're going
> to print. for example see/use zerolog: https://github.com/rs/zerolog
Tanks, I saw it. But mostly i want to avoid typing hint
--
Vasiliy Tolstov,
e-m
st simple case is check each time log level , and
output log only if level satisfied.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
d protobuf message of needed type with
all fields as zero, protobuf must reconstruct proto.Message from it. But
cos says that this is not publically available. So my questions: why this
is not available and how to deal with my use-case ?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
Yo
isit
> https://groups.google.com/d/msgid/golang-nuts/71BBB1B9-9CDB-4E46-A486-A1FC7BF362BC%40ix.netcom.com.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group an
Hi! I'm read several times godoc about the time package but have now
way to deal with it.
I need to output strings with format MMDDHHMMSSMILLISEC without
dot in string. But go able to output milliseconds only in case of .000
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You rec
hat needs to be preprocessed before usage =)
Format means that you get a needed sting and not that you must use
slice manipulation.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To un
ding additional format
that can be used to specify milli/micro/nano seconds will be easy.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emai
o it without the
>> > slice tricks: https://play.golang.org/p/tNAPOcQqApN
>> > It does take an additional Sprintf() though.
>> >
>>
>> Thanks, looks good. But i think for go devs adding additional format
>> that can be used to specify milli/micro/nano seconds wi
To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/CAA40n-VUH5qDdJW1oVPbbdyuMe%3DH2XOvUFU3tXrsTWMj1RS6sg%40mail.gmail.com.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"
files for version
, but all files contain lower version of dep.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
Hi! Does go support adding method to exiting interface via reflect?
Mostly I need to add method to struct pointer.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
/internal/errors"
currently from: ""xxx.org/client/internal/errors"
A future release will panic on registration conflicts. See:
https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
So nobody knows how to deal with this? And if some projects have proto
files with the same name - protobuf always complain about it?
вт, 29 сент. 2020 г. в 10:50, Vasiliy Tolstov :
>
> Hi! I have two packages server and client. All belongs to different
> repos. In this packages i have
elp to give more specific advice...).
>
> *Joop Kiefte* - Chat @ Spike
> <https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=pgfpn> [image:
> pgfpn]
>
> On September 30, 2020 at 13:26 GMT, Vasiliy Tolstov
> wrote:
>
>
> So nobody knows how to deal
Hi. I can't find in google how to solve my problem. Inside
text/template i want to check some passed data and return some
descriptive text if conditions not matching.
I don't have ability to check it before template executed. Does it possible?
--
Vasiliy Tolstov,
e-mail: v.tols...
rspCodeKey{}).(*rspCodeVal); ok {
code = rsp.code
}
return code
}
```
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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
quot;xxxkey","xxxval","zzzkey","val"}
So i'm sort by "key" and if key is duplicated - last wins.
Mostly i want to avoid creating helper slices that contains keys and
vals dedicated, does it possible to do sorting only by swapping
"key/val&quo
u 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid
next element, which I'd say is not
> *too bad*, what are your performance constraints?
>
> Le sam. 13 mars 2021 à 21:33, Vasiliy Tolstov a écrit :
>>
>> Looks fine =) But how to remove duplicates?
>> I'm found this stuff
>> https://github.com/campoy/uniqu
g the previously advised solution you can just range the slice *after*
> you sort it, so you can just check for the next element, which I'd say is not
> *too bad*, what are your performance constraints?
>
> Le sam. 13 mars 2021 à 21:33, Vasiliy Tolstov a écrit :
>>
>&g
,"xxxval","zzzkey","val"}
>>
>> So i'm sort by "key" and if key is duplicated - last wins.
>> Mostly i want to avoid creating helper slices that contains keys and
>> vals dedicated, does it possible to do sorting only by sw
posted by Carla above with an added step to
> remove duplicates seems like the best solution.
>
Thanks for all help
> On Sat, Mar 13, 2021 at 11:27 PM Vasiliy Tolstov wrote:
>>
>> вс, 14 мар. 2021 г. в 01:10, Brian Candler :
>> >
>> > If I understand rig
Does it possible to have own func that have string, bool return value,
but bool value optional?
Like receiving from channel or get element from map, or like when
casting to some type interface?
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are
in behavior specific to some features.
>
> A good way to approach what you want is by assigning it to the anonymous '_'
> var when you don't want the returned bool.
>
> Hope this helps
>
> Le ven. 27 août 2021 à 16:58, Vasiliy Tolstov a écrit :
>>
>
to have the same type as
> `append`).
>
> What you ask is just categorically impossible in Go.
>
> On Fri, Aug 27, 2021 at 5:06 PM Vasiliy Tolstov wrote:
>>
>> I know, so my question is - does it possible to write such functions
>> like builtin? For example I can
p 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/406179d9-c8f5-497d-8832-ea04ff9d03b3n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nut
Hi. Does anybody knows how to call macos functions from go?
Mostly my question about file provider methods, i want to write
something that works as file provider for macos
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google
; https://groups.google.com/d/msgid/golang-nuts/c9321e1c-2999-4590-a94b-57de6e3e3c59n%40googlegroups.com.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
may be, but i don't understand how to connect it to swift based api
and run on m1 macbook
пт, 24 сент. 2021 г. в 19:38, Ian Lance Taylor :
>
> On Fri, Sep 24, 2021 at 9:00 AM Vasiliy Tolstov wrote:
> >
> > Hi. Does anybody knows how to call macos functions from go?
>
xy handler.
--
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
--
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...@googlegrou
1 - 100 of 110 matches
Mail list logo