For "loca import", I mean relative importing.
On Wednesday, April 25, 2018 at 11:38:33 AM UTC-4, T L wrote:
>
> However, now this is forbidden.
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receivi
Just try to change the function parameters, as gobind requested. My first bet
is []int - try []int32, or []int64 instead (and convert as needed).
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving e
On Sat, Apr 28, 2018 at 12:04 PM, wrote:
>
> Hallo all,
>
> I've a "stupid" question about the type "int" when used inside json.
> Almost every documentation I've found says int is 32 bit long, so that I
> expect a range from -2.147.483.648 to 2.147.483.647.
int is 32 bits in 32-bit systems, and
Hey gophers. I have a multi platform game company that is also integrating
blockchain technology as well as crypto currency. I am looking for one or two
full time GO programmers. We are in Los Angeles but are running most people
remote. If you are a mid to high level programmer and interested, p
Hi,
I am trying to bind this file with a Bitcoin iOS app I am developing for
the purpose of creating segwit Bitcoin addresses.
package bech32
import (
"bytes"
"fmt"
"strings"
)
var SegwitAddress = ""
var charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"
var generator = []int{0x3b6a57b2, 0x26508e
Hallo all,
I've a "stupid" question about the type "int" when used inside json.
Almost every documentation I've found says int is 32 bit long, so that I
expect a range from -2.147.483.648 to 2.147.483.647.
So I "mistakely" did that:
type Comment struct {
IDint `json:"id"`
U
Adding custom :foo commands is trivial, it's just a matter of exporting an api
to do register them (the api exists already, but it's not exported and I would
use the occasion to improve it). I should have time to do it tomorrow and
document an example.
About the license: yes, I am still decidin
Do you mean wrt to Go or more generally? I could see using a histogram with
a logarithmic bucket size or similar. Where the bucket sizes are the
maximum length in bytes a given “open slot” can hold and the count is the
number of occurrences of that size in the pool.
On Sat, Apr 28, 2018 at 6:18 PM
Do you have examples of adding custom ":xyz" or other language extensions?
Also, are you still deciding what to do with the license (I see there
is an open issue about it)? I was thinking of using gomacro for an
internal project at work, but use of LGPL libraries is not allowed,
unfortunately.
On
The package: https://github.com/dc0d/bufferpool/
--
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
Is it possible to measure/visualize memory fragmentation?
I have implemented a package that creates a buffer pool (pool of []byte)
which are created from a single underlying big array. But I do not know how
to actually measure/visualize the memory fragmentation.
--
You received this message be
Thanks. I just fixed a bug 2 minutes ago that I introduced while
refactoring, so you probably want to pull the new version. (Thanks to
Anthony Starks for pointing it out.)
On Saturday, April 28, 2018 at 1:21:41 PM UTC-7, Daniel Theophanes wrote:
>
> Thank you for looking into this! This looks gr
Thank you for looking into this! This looks great!
--
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, vis
I have the feeling this is a very advanced and very specific question,
still I would appreciate indications on how to avoid the uncomfortable
corner I find myself in,
namely that I found no alternative to goroutine id for my (quite
complicated) use case.
Let me explain:
My Go interpreter gomacr
grep -r ") Read(" .
If you have grep this works ok (-r to recursively look in directories) if
you want to isolate one method.
Matt
On Saturday, April 28, 2018 at 12:06:07 AM UTC-5, k1at...@gmail.com wrote:
>
> Hi
>
> How can i get a list of types which implement a particular interface ? (
> fo
That's basically what I have done, and it's both pretty declarative
(although not fully) and statically typed.
If you are interested, take a look at
https://github.com/cosmos72/gomacro/blob/master/example/make_fibonacci.gomacro
and the file it generates when executed by gomacro in preprocessor m
I can think of many uses for macros, so it's a good thing though I will
never use a language that compiles to Go because I like static typing. It
would be a logical next step to implement by-default reflection and dynamic
typing. But I don't see the benefit. Go's whole schtick is about how it's
On Sat, Apr 28, 2018 at 8:56 AM wrote:
> I want to search in all library (which have source code)
If the above means the standard library: either local godoc search or
https://golang.org/search?q=Read. But as you can see, you'll get a vast
amount of hits.
> for exmaple :
> I see this. This func
On Apr 27, 2018, at 11:56 PM, k1atti...@gmail.com wrote:
>
> I want to search in all library (which have source code)
> Maybe i don't understand the concept of Golang (I have delphi,c++,c
> background)
>
>
> for exmaple :
> I see this. This function need an interface type : r
> func NewScanne
On Fri, 27 Apr 2018 22:06:07 -0700 (PDT)
k1atti...@gmail.com wrote:
> How can i get a list of types which implement a particular interface ? (
> for exmaple io.Reader)
By using a tool named 'guru'.
http://golang.org/s/using-guru
https://godoc.org/golang.org/x/tools/cmd/guru
Unlike in (almost?
Thank you
But how do you know which types has this method ?
Thank you
Attila
(Én voltam az aki már irt neked egyszer, de még mindig csak küzdök ezzel a
Goval - szerencse csak hobbi.)
2018. április 28., szombat 9:00:27 UTC+2 időpontban Tamás Gulácsi a
következőt írta:
>
> See what an io.Read
On Saturday, 28 April 2018 08:56:18 UTC+2, k1at...@gmail.com wrote:
>
> But which type satisfy this r parameter ?
>
This question has no interesting answer. Or put it the
other way around: What would you do with an answer
to this question?
_Any_ io.Reader is okay. And the information that
github.c
See what an io.Reader is: just one method, a "Read([]byte) (int, error)". So if
a type has such method, it can be used as an io.Reader.
No explicit declaration ("implements") is needed!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscr
23 matches
Mail list logo