Hello,
This issue might help you understand why:
https://github.com/golang/go/issues/12380
I hope one day Golang would be available without any restrictions :-(
Yoshiyuki
2017/05/08 0:36ãabbasnagh...@gmail.com:
Why the Iranians have blocked?
Is free and open source language golang?
--
You
if a method only defined for a pointer receiver, the compiler will add "*"
before the caller silently.
Why pointer receiver? Try to change the value of a member. You will know
the difference.
On Sunday, May 7, 2017 at 6:37:59 PM UTC+8, mhh...@gmail.com wrote:
>
> yes, sorry you scratched your
The post over on stack overflow is confused. The behaviour of go test is to
test multiple packages concurrently, inside a single package tests are executed
serially by default.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe
My understanding is that they are run serially. You need to call t.Parallel()
in the beginning of each test to make it run in parallel with other tests.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
I'm adding tracing to an existing code base with many packages and it seems
the best way to have context's passed around is to just have every method
take a context.Context.
Is there any tooling for converting a code base/package to have:
(a) context.Context as the first parameter in each
Go test methods run in separate goroutines but those routines are run
serially right?
So variable assignments shouldn't get stomped by other tests?
I saw a comment saying they're *concurrent*, but not *parallel* by default.
Thanks for correcting my concerns!
On Thursday, May 4, 2017 at 8:52:02 PM UTC-7, Dave Cheney wrote:
>
>
>
> On Friday, 5 May 2017 13:37:26 UTC+10, st ov wrote:
>>
>> By "fork" I mean in the GItHub sense, the forking of original project
>> *github.com/original/foo
>>
On Sun, May 7, 2017 at 8:39 PM peterGo wrote:
> "[Rob Pike and Ken Thompson] they made sure it was backwards compatible
with ASCII."
> ASCII is 7-bits.
So is any UTF-8 encoded ASCII.
--
-j
--
You received this message because you are subscribed to the Google Groups
Sam,
"[Rob Pike and Ken Thompson] they made sure it was backwards compatible
with ASCII."
ASCII is 7-bits.
Peter
On Sunday, May 7, 2017 at 11:29:53 AM UTC-4, Sam Whited wrote:
>
> On Sun, May 7, 2017 at 9:44 AM, rob solomon > wrote:
> > I now understand that the bytes
Sam,
"I'd be suprised if Windows didn't understand UTF-8 these days,"
Be surprised! For Unicode, Microsoft Windows uses UTF-16.
Peter
On Sunday, May 7, 2017 at 11:29:53 AM UTC-4, Sam Whited wrote:
>
> On Sun, May 7, 2017 at 9:44 AM, rob solomon > wrote:
> > I now
Why the Iranians have blocked?
Is free and open source language golang?
--
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.
On Sun, May 7, 2017 at 9:44 AM, rob solomon wrote:
> I now understand that the bytes may be different.
It's also worth noting that when Ken Thompson and Rob Pike (yes, the
same Rob Pike and Ken Thompson that created Go) created UTF-8, they
made sure it was backwards
I have this struct that has an associated method that simply call a C
function that might take a long time to use. It is defined more or less
like this:
import "C"
type Indexer struct {
cIndexer *C.Indexer
}
func NewIndexer() *Indexer {
i := {getCIndexerPointer()}
runtime.SetFinalizer(i,
I highly recommend "The Absolute Minimum Every Software Developer
Absolutely, Positively Must Know About Unicode and Character Sets (No
Excuses!)"
Thanks to those who answered.
I grew up in the EBCDIC vs ASCII era, and I've always expected that the
bytes in the file were the same as those that represented a character.
I now understand that the bytes may be different.
Thanks guys.
-- rob solomon
--
You received this message because
This doesn't sound like a real world problem, which means it's really
difficult to comment on the problem.
Currently the marshaling would work, but not unmarshaling.
Also, you can achieve the similar effect with:
https://play.golang.org/p/dmFCRT-D1h
On Sunday, 7 May 2017 02:56:35 UTC+3, Glen
yes, sorry you scratched your head
https://play.golang.org/p/Gg6Euyvsw6
this example shows that it is possible to do all the things.
hth.
I m curious to know more about other questions.
Maybe they are not good idea, or not technically achievable.
Just curious.
On Sunday, May 7, 2017 at
On 2017-05-07 11:58, dc0d wrote:
What's the proper way of defining a custom context?
Is it enough to wrap the methods of parent `context.Context`?
I did some experiments trying to extend the context.Context interface.
One quickly runs into endless troubles due to the reliance on global
What's the proper way of defining a custom context?
Is it enough to wrap the methods of parent `context.Context`? Is it fine to
add fields and methods (we can type-assert later on, down the chain)?
Or one should just use the `WithValue` and stores everything inside the
context and handle them
Where will you store reference counter for interior pointer?
type st struct { j int }
type at { i int; s st }
var a at
var s st
dealWithSt()
dealWithSt()
So, you have two choices:
- either you have to find base address for pointer on every rc
increment/decrement - and it
20 matches
Mail list logo