[go-nuts] Announcing package aconf - a package to parse/unmarshal HOCON files using golang

2019-12-10 Thread Neeraj Vaidya
Dear Community,
I would like to share a package for unmarshalling HOCON file format (widely 
used by the scala/akka community) for storing configuring data.
I feel HOCON format can be very useful given it's ease of use especially 
with it's similarities to JSON, but also with the ability to embed comments 
using #.
At the moment, I have only added capability to Unmarshal from file to a 
struct.
Please have a look at the GitHub repo : https://github.com/en-vee/aconf

Regards,
Neeraj

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/fbe23a21-999d-42c4-aa23-84efff150010%40googlegroups.com.


[go-nuts] Re: why golang unicode katakana table don't include 0x30fc ..

2019-12-10 Thread Ben Bullock
These properties come from the Unicode definitions in the file Scripts.txt, 
not from the Go language. It is the same in Perl, \p{Katakana} does not 
match U+30FB or U+30FC, but \p{InKatakana} does, similarly with U+30A0.

Here is the relevant portion of Scripts.txt:

30A1..30FA; Katakana # Lo  [90] KATAKANA LETTER SMALL A..KATAKANA 
LETTER VO
30FD..30FE; Katakana # Lm   [2] KATAKANA ITERATION MARK..KATAKANA 
VOICED ITERATION MARK
30FF  ; Katakana # Lo   KATAKANA DIGRAPH KOTO
31F0..31FF; Katakana # Lo  [16] KATAKANA LETTER SMALL KU..KATAKANA 
LETTER SMALL RO
32D0..32FE; Katakana # So  [47] CIRCLED KATAKANA A..CIRCLED KATAKANA WO
3300..3357; Katakana # So  [88] SQUARE APAATO..SQUARE WATTO
FF66..FF6F; Katakana # Lo  [10] HALFWIDTH KATAKANA LETTER WO..HALFWIDTH 
KATAKANA LETTER SMALL TU
FF71..FF9D; Katakana # Lo  [45] HALFWIDTH KATAKANA LETTER A..HALFWIDTH 
KATAKANA LETTER N
1B000 ; Katakana # Lo   KATAKANA LETTER ARCHAIC E
1B164..1B167  ; Katakana # Lo   [4] KATAKANA LETTER SMALL WI..KATAKANA 
LETTER SMALL N


I imagine that the reason for this is that U+30FC, the KATAKANA-HIRAGANA 
PROLONGED SOUND, isn't specifically a katakana symbol, it can be used with 
either katakana or hiragana (らーめん etc.), and U+30FB, although it's called 
KATAKANA MIDDLE DOT, is actually a punctuation mark and it also is not 
actually a katakana symbol. 

But the Unicode definitions are not easy to work with for people handling 
Japanese text. Generally speaking, if you want to match a Japanese word you 
want to get U+30FC, but you don't want U+30FB, which is why I made 
something like this:

https://metacpan.org/pod/Lingua::JA::Moji#InKana


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6e0c78c3-e3e3-46c2-9cc4-05de41e1a80f%40googlegroups.com.


[go-nuts] TLS Cipher suites TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8

2019-12-10 Thread nasaproductions
Hi, does golang support TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 ?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d8775353-38ba-4690-a537-981c66d7ff0b%40googlegroups.com.


[go-nuts] I get a "Invalid cast. " error when debuging

2019-12-10 Thread moblopez1234
Debug

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c2995284-8d79-43e4-a96c-9c587027f7f4%40googlegroups.com.


Re: [go-nuts] cgo & long jump

2019-12-10 Thread Ian Lance Taylor
On Tue, Dec 10, 2019 at 2:20 AM  wrote:
>
> On Monday 09 December 2019 15:55:18 Ian Lance Taylor wrote:
> > On Mon, Dec 9, 2019 at 10:30 AM  wrote:
> > >
> > > So should I interpret your answer as long jumps are not supported and
> > > caller of C function from Go must ensure that called C function would
> > > not call longjmp()?
> >
> > Correct: Go code should not call C code that calls longjmp.  (Well,
> > it's OK to call C code that calls setjmp and then calls longjmp back
> > to that setjmp; what's not OK is using longjmp to jump across or out
> > of the Go code.)
>
> One small suggestion: Could you put this information into cgo
> documentation? I think that this should be documented.

Personally I think documentation in this e-mail thread or a blog post
is sufficient.  As Michael said upthread, all kinds of things break
when using setjmp/longjmp.  Essentially no complex library supports
calling longjmp across library functions.

Ian

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWcsoMJ1-ebpzXtyVK6PYcz6LpivpY0GbDxLoo%3D2zOtdg%40mail.gmail.com.


Re: [go-nuts] why golang unicode katakana table don't include 0x30fc ..

2019-12-10 Thread zhuoyikang
xx
a big surprise for me to get the answer directly from rob pike.
thanks a lot.!!
My fellows and I are very curious about this question.
hope to get a reply from Marcel.


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a54e7bc3-52c5-4e8b-9912-df8de6078814%40googlegroups.com.


Re: [go-nuts] why golang unicode katakana table don't include 0x30fc ..

2019-12-10 Thread Rob Pike
That's a good question and I haven't figured it out, but I bet it has to do
with U+30fb not being in L class:

% unicode -d -U 30fa 30fb 30fc

U+30FA 'ヺ' KATAKANA LETTER VO

category: Lo

canonical combining classes: 0

bidirectional category: L

character decomposition mapping: 30F2 3099

mirrored: N

U+30FB '・' KATAKANA MIDDLE DOT

category: Po

canonical combining classes: 0

bidirectional category: ON

mirrored: N

U+30FC 'ー' KATAKANA-HIRAGANA PROLONGED SOUND MARK

category: Lm

canonical combining classes: 0

bidirectional category: L

mirrored: N

%


I think the behavior might be a bug, but the character is peculiar, or at
least punctuation rather than "letters". Leaving for Marcel, who is the
curator of the Unicode packages these days.


-rob




On Tue, Dec 10, 2019 at 7:22 PM  wrote:

> hi :
> there is a question about unicode katakana table
> thanks all for help
>
>
> https://en.wikipedia.org/wiki/Katakana_(Unicode_block)
>
> [image: 1211575965733_.pic.jpg]why golang split the katakana range into
> multirange , and don't include  0x30fb --0x30fc, it should include it..
>
>
>
>
>
>
>
> [image: 1221575965876_.pic.jpg]in golang   src/unicode/tables
> var _Katakana = { R16: []Range16{ {0x30a1, 0x30fa, 1}, {0x30fd,
> 0x30ff, 1}, {0x31f0, 0x31ff, 1}, {0x32d0, 0x32fe, 1}, {0x3300, 0x3357, 1}, 
> {0xff66,
> 0xff6f, 1}, {0xff71, 0xff9d, 1}, }, R32: []Range32{ {0x1b000, 0x1b000, 1},
> },}
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/f524ca6d-c98e-43d5-a594-41c3c9481e18%40googlegroups.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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOXNBZTmkQhgcxFQ2dEWevpdTbgtV4nksMORbeX1CXg9MistDQ%40mail.gmail.com.


[go-nuts] Re: [golang-dev] Go 1.13.5 and Go 1.12.14 are released

2019-12-10 Thread helloPiers
The pull request is not going too smoothly: 
https://github.com/Homebrew/homebrew-core/pull/47510

(I just looked at the repo - I'm not involved with homebrew at all, except 
as a user.)


On Monday, December 9, 2019 at 9:36:01 PM UTC, Brian Hatfield wrote:
>
> Hi there,
>
> This appears to still not be available in Homebrew: 
> https://github.com/Homebrew/homebrew-core/blob/master/Formula/go.rb
>
> Is there a plan for releasing 1.13.5 to Homebrew?
>
> Thanks!
>
> On Wed, Dec 4, 2019 at 9:01 PM Alexander Rakoczy  > wrote:
>
>> Hello gophers,
>>
>> We have just released Go versions 1.13.5 and 1.12.14, minor point 
>> releases.
>>
>> These releases include fixes to the go command, the runtime, the linker,
>> and the net/http package.
>>
>> View the release notes for more information:
>> https://golang.org/doc/devel/release.html#go1.13.minor
>>
>> You can download the binary and source distributions from the Go web site:
>> https://golang.org/dl/
>>
>> To compile from source using a Git clone, update to the release with
>> "git checkout go1.13.5" and build as usual.
>>
>> Thanks to everyone who contributed to the release.
>>
>> Cheers,
>> Carlos & Alex from the Go team
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golan...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-dev/CAFtHmMgzr5nJZ%3DRW03rhEtbB524HiQQUXfvL_XWWES0gKsrwOQ%40mail.gmail.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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f1de2fe3-74b6-4ed9-8071-25cf9a1cb212%40googlegroups.com.


Re: [go-nuts] cgo & long jump

2019-12-10 Thread pali
On Monday 09 December 2019 15:55:18 Ian Lance Taylor wrote:
> On Mon, Dec 9, 2019 at 10:30 AM  wrote:
> >
> > So should I interpret your answer as long jumps are not supported and
> > caller of C function from Go must ensure that called C function would
> > not call longjmp()?
> 
> Correct: Go code should not call C code that calls longjmp.  (Well,
> it's OK to call C code that calls setjmp and then calls longjmp back
> to that setjmp; what's not OK is using longjmp to jump across or out
> of the Go code.)

One small suggestion: Could you put this information into cgo
documentation? I think that this should be documented.

> > And another interesting question, it is possible to call longjmp() from
> > Go code? To throw C exception back to the main C application.
> 
> No.

Thank you for answers!

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20191210102011.luq3v5qzt65yyafv%40pali.


[go-nuts] Re: Why Iran is banned by Google?

2019-12-10 Thread Space A.
It's very interesting fact to know for everyone in this group including 
Google employees, that seems only Google just don't care and bans 
educational/scientific resources for other countries' ordinary citizens (of 
course govs and mils are aware of how to use VPN to access golang.org).


On Wednesday, July 18, 2018 at 8:54:44 AM UTC+3, Kaveh Shahbazian wrote:
>
> FYI GitHub, GitLab, all things Microsoft (.NET Framework, VSCode, etc), 
> Amazon Instances etc, etc are perfectly reachable inside Iran - whatever.
>
>
>
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3575b629-150c-4c9c-b8ff-a3b5cf9b6d58%40googlegroups.com.


[go-nuts] why golang unicode katakana table don't include 0x30fc ..

2019-12-10 Thread zhuoyikang
hi :
there is a question about unicode katakana table 
thanks all for help


https://en.wikipedia.org/wiki/Katakana_(Unicode_block)

[image: 1211575965733_.pic.jpg]  
why golang split the katakana range into 
multirange , and don't include  0x30fb --0x30fc , 
it should include it..





 


[image: 1221575965876_.pic.jpg]  
in golang   src/unicode/tables 

var _Katakana = { 
 R16: []Range16{  {0x30a1, 
0x30fa, 1},  {0x30fd, 0x30ff, 1}, 
 {0x31f0, 0x31ff, 1},  
{0x32d0, 
0x32fe, 1},  {0x3300, 0x3357, 1}, 
 {0xff66, 0xff6f, 1},  
{0xff71, 
0xff9d, 1},  },  R32: 
[]Range32{  {0x1b000, 0x1b000, 1}, 
 }, } 


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f524ca6d-c98e-43d5-a594-41c3c9481e18%40googlegroups.com.