Re: [go-nuts] x/term: go-keycodes

2017-05-14 Thread anatoly techtonik
On Fri, May 12, 2017 at 7:54 AM, Nigel Tao <nigel...@golang.org> wrote:
> On Fri, May 12, 2017 at 3:11 AM, anatoly techtonik <techto...@gmail.com> 
> wrote:
>> I am new to Go and I need a cross-platform value for keyboard key codes to
>> make sure I can react to user key presses regardless of operating system
>> layer.
>
> FYI, there's already the key.Code type defined in
> https://github.com/golang/mobile/blob/master/event/key/key.go

1. So does that mean it will conflict if both are imported?

Right now https://github.com/yakshaveinc/go-keycodes/blob/master/keycodes.go
uses KeyF11 while mobile lib uses CodeF11. For me Code is less clear
than Key, because from user point of view they press keys, not
symbols/characters of codes.

2. Does it provide reverse mapping, so that if user press F11, go
program could write "KeyF11" to console?

3. How should keycodes package be renames and placed so that I could
be reused in mobile?

-- 
anatoly t.

-- 
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 https://groups.google.com/d/optout.


[go-nuts] x/term: go-keycodes

2017-05-11 Thread anatoly techtonik
I am new to Go and I need a cross-platform value for keyboard key codes to 
make sure I can react to user key presses regardless of operating system 
layer.

Thanks to the feedback from other projects, 
namely https://github.com/eiannone/keyboard 
and https://github.com/depp/keycode I was able to compile a package with 
key codes at https://github.com/yakshaveinc/go-keycodes which I'd like to 
make more "pythonic" for Go, and ideally merge into x/term. I need help 
with reviewing the code for best practices so that it could be included in 
stdlib.

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Re: go get -u doesn't update dependencies

2017-05-03 Thread anatoly techtonik
I am pretty sure GOPATH is correct. There are also no symlinks. Unless
`go` created them itself.

On Tue, May 2, 2017 at 11:35 AM, Dave Cheney <d...@cheney.net> wrote:
> One cause can be an incorrect GOPATH setting (if the source is outside
> GOPATH, possibly due to symlinks)
>
>
> On Tuesday, 2 May 2017 18:33:34 UTC+10, anatoly techtonik wrote:
>>
>> https://github.com/lxc/lxd/pull/3260 was an attempt to prevent breaking
>> builds due to a missing/updated dependency with `go get -u`. However, this
>> command didn't fetch it. Why? Why not to fix it?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/oHmKAMp-ecY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
anatoly t.

-- 
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 https://groups.google.com/d/optout.


[go-nuts] go get -u doesn't update dependencies

2017-05-02 Thread anatoly techtonik
https://github.com/lxc/lxd/pull/3260 was an attempt to prevent breaking 
builds due to a missing/updated dependency with `go get -u`. However, this 
command didn't fetch it. Why? Why not to fix it?

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Link documentation sources

2017-04-17 Thread anatoly techtonik
It still would be nice to trace back to these sources to fix them,
and describe the syntax for cross-linking.

On Tue, Apr 18, 2017 at 4:30 AM, Stas Maksimov <maksi...@gmail.com> wrote:
> I believe this documentation is built from comments in the source code:
> https://go.googlesource.com/go/+/go1.8.1/src/path/path.go
>
> S.
>
> On Mon, 17 Apr 2017 at 20:49 anatoly techtonik <techto...@gmail.com> wrote:
>>
>> On Monday, April 17, 2017 at 7:35:00 PM UTC+3, Jan Mercl wrote:
>>>
>>> On Mon, Apr 17, 2017 at 5:45 PM anatoly techtonik <tech...@gmail.com>
>>> wrote:
>>>
>>> > I want to see documentation sources for this page -
>>> > https://golang.org/pkg/path/#pkg-overview
>>> > Why there is no link to them in the footer, like on
>>> > https://readthedocs.org/?
>>>
>>> What do you mean by 'documentation sources'?
>>
>>
>> https://cilium.readthedocs.io/en/latest/intro/ - see the Edit on Github
>> link in top right corner.
>>
>> --
>> 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 https://groups.google.com/d/optout.



-- 
anatoly t.

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Link documentation sources

2017-04-17 Thread anatoly techtonik
On Monday, April 17, 2017 at 7:35:00 PM UTC+3, Jan Mercl wrote:
>
> On Mon, Apr 17, 2017 at 5:45 PM anatoly techtonik <tech...@gmail.com 
> > wrote:
>
> > I want to see documentation sources for this page - 
> https://golang.org/pkg/path/#pkg-overview
> > Why there is no link to them in the footer, like on 
> https://readthedocs.org/? 
>
> What do you mean by 'documentation sources'?
>

https://cilium.readthedocs.io/en/latest/intro/ - see the Edit on Github 
link in top right corner.

>

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Link documentation sources

2017-04-17 Thread anatoly techtonik
I want to see documentation sources for this page 
- https://golang.org/pkg/path/#pkg-overview
Why there is no link to them in the footer, like on 
https://readthedocs.org/?

-- 
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 https://groups.google.com/d/optout.