2018. január 14., vasárnap 5:48:11 UTC+1 időpontban Constantine Vassilev a
következőt írta:
>
> I need to implement the following:
>
> 1) I have a database of ~100 mil records.
>
> Each record is of type key/value.
>
> The key is an internal ID of type: "123456789".
> The value is a kml with
On Thursday, January 11, 2018 at 10:55:01 PM UTC-5, Tong Sun wrote:
>
> Is there any go specific code online search that can order the returns by
> the import counts (instead of by name or start-count)?
>
Found one. Although not the direct answer, but this *could* help:
On Sunday, January 14, 2018 at 12:33:46 AM UTC-5, Tong Sun wrote:
>
> > Token should be called at most once per Next call,
>
> Ah, that's exactly what my mistake was -- I use Token() in the loop the
> standard way, but in the element handling, I used function calls, within
> which I use the
I need to implement the following:
1) I have a database of ~100 mil records.
Each record is of type key/value.
The key is an internal ID of type: "123456789".
The value is a kml with geographic boundary in form of lat/lon coordinates:
Hello everyone,
I've attended the Gophercon 2017 Contributing to Go workshop and learned a
lot from it. As part of the workshop, we contributed examples to the go
standard library. As a way to give back to the community, I made a list of
methods/functions missing examples in the go std library
Hello,
I have a parent/child class and a method that accepts parameters as below.
How do I type cast to parent/child in setf and access its elements.
t := reflect.ValueOf(p).Elem().Type() returns types as Parenter for setf
type Parenter interface {
GetParent() interface{}
}
type
Introducing mdencode
This is the first random file signature program.
mdencode is a golang command line file digital signature generator with
modular floors.
mdencode is written in golang and uses an interface for pluggin formatters.
mdencode allows for the creation of sqlite3 db file signatures
Here is how I implemented it:
func wwwAssetsHandler(w http.ResponseWriter, r *http.Request) {
if r.Host == "domain.net" || r.Host == "www.domain.net" || r.Host ==
"domain.com" || r.Host == "www.domain.com" {
var webrootStr = homePath + "/Desktop/" + "www.domain.com"
fs :=
On Fri, Jan 12, 2018 at 2:24 PM, Tong Sun wrote:
> but I really suggest that you give it a test.
It is already tested directly by func TestTokenizer in token_test.go
The Tokenizer.Text method implementation does not call Tokenizer.Next,
and only the Next method moves on to
On 2018-01-13 17:06, Peter Mogensen wrote:
> But I can't really see technical reasons why one could not in principle
> make a language operator, which worked for any interface{..} being of
> type **T for input and *T for output. - and having that compile time
> checked.
Hmm... actually ... no.
On 2018-01-13 13:28, Axel Wagner wrote:
> Go /has/ this operator, it is spelled "*" and is a unary operator with
> even more power: It can turn a general *T into a * for any T.
>
> Say, you'd have the function you want,
Alex, This is what I want - or rather, what I'm thinking of:
On Sat, Jan 13, 2018 at 9:32 AM, Peter Mogensen wrote:
>
>
> On 2018-01-13 01:35, Axel Wagner wrote:
> > But the answer to 2 is "no, not in a type-safe way". It necessarily
> > requires reflection. Even if we'd assume we somehow magically know that
> > the dynamical value of the
On 2018-01-13 01:37, 'Axel Wagner' via golang-nuts wrote:
> uhm, there is a bit of a mix-up with the yes-vs-no thing and negating.
> I'm apparently a bit tired, disregard the actual "no" and focus on the
> rest of the reply, explaining why what you want can't be done :)
I must admit, I'm
On 2018-01-13 01:35, Axel Wagner wrote:
> But the answer to 2 is "no, not in a type-safe way". It necessarily
> requires reflection. Even if we'd assume we somehow magically know that
> the dynamical value of the interface is some pointer type. That doesn't
> actually help us, in any reasonable
Hi,
A small talk about table driven tests and t.Parallel - it is dangerous!
https://gist.github.com/posener/92a55c4cd441fc5e5e85f27bca008721
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving
15 matches
Mail list logo