go-gtk icon indicating copy to clipboard operation
go-gtk copied to clipboard

go-gtk documentation

Open fedesog opened this issue 14 years ago • 5 comments

Hi, this is not really an issue. I'd like to add comments, mostly cut&paste from gtk documentation, to gtk.go so I can read how functions work from godoc documentation. Before starting I was wondering if it is better to break gtk.go into smaller files before doing that or just adding to gtk.go even if it will become a huge file. What do you think?

fedesog avatar Feb 15 '11 11:02 fedesog

I personally do not like this approach. What if official gtk documentation will evolve with time or go-gtk binding will switch to gtk-3.0. Also rule of the thumb works here: do not copy entities.

mikhailt avatar Feb 15 '11 13:02 mikhailt

I was thinking something like PyGTK documentation, it would be nice to have enough documentation shown by godoc to write an application but I see your point. Talking about gtk evolution, I noticed that you wrote bindings for some deprecated functions, do you mind if I add a comment to specify they are deprecated or are you planning to remove them?

fedesog avatar Feb 15 '11 15:02 fedesog

I suppose there is no strict policy about what version of gtk we use with these go-gtk bindings. More probably the one which lives within ubuntu repos will be supported. Comments are more up to mattn, but I still think that http://library.gnome.org/devel/gtk have to be the only place where docs are.

mikhailt avatar Feb 17 '11 09:02 mikhailt

In the meanwhile we should probably let Gnome know that a partial binding to Go exists (http://www.gtk.org/language-bindings.html). I will send them an email if mattn gives me the OK (this is his project after all :) )

fedesog avatar Feb 19 '11 13:02 fedesog

gtk languages bindings is now here : http://www.gtk.org/language-bindings.php (go is in the list).

mqu avatar May 24 '12 15:05 mqu