GithubHelp home page GithubHelp logo

godoc's People

Contributors

greenkeeperio-bot avatar joefitzgerald avatar simurai avatar zmb3 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

flygsand

godoc's Issues

this.goget.register is not a function

[Enter steps to reproduce below:]

  1. Start Atom
  2. Update 12 packages (tester-go 2.0.2, navigator-godef, linter 1.11.18, language-protobuf 0.7.0, gorename 1.1.0 gometalinter-linter 1.2.2 gofmt 1.2.0 go-plus 4.3.2 go-get 2.1.1 go-config 1.2.4 builder-go 1.0.1 auto-complete-go 1.3.0)
  3. Wait a minute so, then get two error messages. One error message indicates that an issue has already been created (#42), another indicates that a new issue should be created.
  4. Clicking the "Create issue on the navigator-go package" button has no effect.

Atom Version: 1.11.1
Electron Version: 0.37.8
System: Microsoft Windows 10 Pro
Thrown From: navigator-go package, v1.1.3

Stack Trace

Failed to activate the navigator-go package

At this.goget.register is not a function

TypeError: this.goget.register is not a function
    at Object.registerTool (C:/Users/jjeffery/.atom/packages/navigator-go/lib/main.js:68:39)
    at Object.consumeGoget (C:/Users/jjeffery/.atom/packages/navigator-go/lib/main.js:61:10)
    at Provider.module.exports.Provider.provide (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\service-hub\lib\provider.js:29:52)
    at ServiceHub.module.exports.ServiceHub.consume (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\service-hub\lib\service-hub.js:50:18)
    at Package.module.exports.Package.activateServices (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:363:75)
    at Package.module.exports.Package.activateNow (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:186:16)
    at C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:156:32
    at Package.module.exports.Package.measure (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:92:15)
    at C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:149:26
    at Package.module.exports.Package.activate (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package.js:146:34)
    at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\jjeffery\AppData\Local\atom\app-1.11.1\resources\app.asar\src\package-manager.js:538:21)
    at C:\Users\jjeffery\.atom\packages\autocomplete-go\node_modules\atom-package-deps\lib\helpers.js:28:30
    at Array.map (native)
    at C:\Users\jjeffery\.atom\packages\autocomplete-go\node_modules\atom-package-deps\lib\helpers.js:27:43
    at undefined.next (native)
    at step (C:\Users\jjeffery\.atom\packages\autocomplete-go\node_modules\atom-package-deps\lib\helpers.js:45:273)
    at process._tickCallback (internal/process/next_tick.js:103:7)

Commands

     -2:06.5.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Config

{}

Installed Packages

# User
autocomplete-go, v1.3.0 (active)
builder-go, v1.0.1 (active)
editorconfig, v1.4.1 (active)
go-config, v1.2.4 (active)
go-debug, v0.1.22 (inactive)
go-get, v2.1.1 (active)
go-plus, v4.3.2 (active)
godoc, v1.1.0 (inactive)
gofmt, v1.2.0 (active)
gometalinter-linter, v1.2.2 (active)
gorename, v1.1.0 (active)
language-ini, v1.16.0 (active)
language-protobuf, v0.7.0 (active)
linter, v1.11.18 (active)
navigator-go, v1.1.3 (inactive)
navigator-godef, v1.0.3 (active)
tester-go, v1.0.4 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Failed to activate the godoc package

[Enter steps to reproduce below:]

  1. Updated Atom
  2. Updated packages

Atom Version: 1.11.1
Electron Version: 0.37.8
System: Mac OS X 10.12
Thrown From: godoc package, v1.1.0

Stack Trace

Failed to activate the godoc package

At this.goget.register is not a function

TypeError: this.goget.register is not a function
    at Object.registerTool (/Users/pavel/.atom/packages/godoc/lib/main.js:66:39)
    at Object.consumeGoget (/Users/pavel/.atom/packages/godoc/lib/main.js:59:10)
    at Provider.module.exports.Provider.provide (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/provider.js:29:52)
    at ServiceHub.module.exports.ServiceHub.consume (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/service-hub.js:50:18)
    at Package.module.exports.Package.activateServices (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:363:75)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:186:16)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:156:32
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:149:26
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:146:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:538:21)
    at /Users/pavel/.atom/packages/autocomplete-go/node_modules/atom-package-deps/lib/helpers.js:28:30
    at Array.map (native)
    at /Users/pavel/.atom/packages/autocomplete-go/node_modules/atom-package-deps/lib/helpers.js:27:43
    at undefined.next (native)
    at step (/Users/pavel/.atom/packages/autocomplete-go/node_modules/atom-package-deps/lib/helpers.js:45:273)

Commands

     -0:54 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
  "core": {
    "telemetryConsent": "limited"
  }
}

Installed Packages

# User
autocomplete-go, v1.3.0 (active)
builder-go, v1.0.1 (active)
go-config, v1.2.4 (active)
go-debug, v0.1.17 (inactive)
go-get, v2.1.1 (active)
go-plus, v4.3.2 (active)
godoc, v1.1.0 (inactive)
gofmt, v1.2.0 (active)
gometalinter-linter, v1.2.2 (active)
gorename, v1.1.0 (active)
linter, v1.11.18 (active)
navigator-go, v1.1.3 (inactive)
navigator-godef, v1.0.3 (active)
terminal-plus, v0.14.5 (active)
tester-go, v2.0.2 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Issues on OS X

OS X 10.11.6
Atom 1.10.2

$ /usr/local/go/bin/go version
go version go1.7.1 darwin/amd64

$ /usr/local/go/bin/go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sean/Code/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/55/tyr_4p4d6175m16nrn1s3mh40000gn/T/go-build289574035=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
~$ gogetdoc
missing required -pos flag
~$ which gogetdoc
//Users/sean/Code/go/bin/gogetdoc

When I go to use the tool, all I get is

Generating documentation...

in the go-plus pane.

Uncaught TypeError: this.goget.register is not a function

[Enter steps to reproduce below:]

  1. Atom -> Preferences -> Updates
  2. Clicked on Update All and got this error thrown while updating

Atom Version: 1.10.2
Electron Version: 0.37.8
System: Mac OS X 10.12
Thrown From: godoc package, v1.0.0

Stack Trace

Uncaught TypeError: this.goget.register is not a function

At /Users/kat/.atom/packages/godoc/lib/main.js:65

TypeError: this.goget.register is not a function
    at Object.registerTool (/Users/kat/.atom/packages/godoc/lib/main.js:65:39)
    at Object.consumeGoget (/Users/kat/.atom/packages/godoc/lib/main.js:58:10)
    at Provider.module.exports.Provider.provide (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/provider.js:30:52)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/service-hub.js:55:26
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Commands

     -1:09.3.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
api-blueprint-preview, v0.7.0 (active)
autocomplete-go, v1.2.0 (active)
builder-go, v1.0.1 (inactive)
environment, v1.2.0 (active)
git-plus, v5.17.1 (inactive)
go-config, v1.2.4 (active)
go-debug, v0.1.22 (inactive)
go-get, v2.1.0 (active)
go-plus, v4.2.0 (active)
godoc, v1.0.0 (inactive)
gofmt, v1.2.0 (active)
gometalinter-linter, v1.2.2 (active)
gorename, v1.1.0 (active)
linter, v1.11.16 (active)
markdown-scroll-sync, v2.1.2 (active)
navigator-godef, v1.1.0 (active)
tester-go, v1.1.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.5.0 (active)
one-light-ui, v1.5.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.3 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
find-and-replace, v0.201.0 (inactive)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.2 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.65.0 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.100.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.208.2 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Strange gogetdoc error && ui

Set cursor to log.Println
toggle godoc

gideon1

Atom: 1.10-beta6
Theme: Accents
Syntax: Base16 Tomorrow Dark

❯ type gogetdoc
gogetdoc is /home/user/projects/go/bin/gogetdoc
❯ type godoc
godoc is /usr/local/go/bin/godoc

Documentation paragraph format is incorrectly parsed at times

I have just installed the godoc tool for Atom, and I believe there are certain issues with how the documentation is being displayed.

The recommended way to document code is described here, and it is exactly what I'm doing. However I noticed that somehow the parser seems to append new line at random locations, which makes the documentation look very broken and poorly justified.

This is an example from a built-in library by the Go creators, which I believe displayed incorrectly:
library doc example

And another from a file I've written:
ex2

This does not happen always, and these are some examples where they do. Please check up on the same.

P.S. I really look forward to using this tool extensively, so I would appreciate any feedback and correction. Thanks!

Add support for unsaved buffers

The gogetdoc tool recently added support for unsaved buffers. Update this package so that we don't have to save modified buffers before invoking the tool.

Pop ups are missing or the packages doesn't work

Hi everyone

I want to use this package, I installed it on Atom Preferences, and ran go get github.com/zmb3/gogetdoc I followed the instructions in Usage section.

But the pop ups are missing in my go code.

Any idea what I missing ?

Cannot get this to work

My setup is:
OS X El Capitain 10.11.4
Atom 1.7.3
Go go1.6 darwin/amd64

When I try to use godoc, by clicking Alt+D, I get a loading image and it never gets loaded.
$GOPATH/bin is is in my $PATH

Build has a green status passing

Godoc must not show private fields in structs.

godoc version 1.1.0
Use it to show documentation for github.com/go-gl/glfw/v3.2/glfw.Window.
Output is:

type Window struct {
data *_Ctype_struct_GLFWwindow

    fPosHolder             func(w *Window, xpos int, ypos int)
    fSizeHolder            func(w *Window, width int, height int)
    fFramebufferSizeHolder func(w *Window, width int, height int)
    fCloseHolder           func(w *Window)
    fRefreshHolder         func(w *Window)
    fFocusHolder           func(w *Window, focused bool)
    fIconifyHolder         func(w *Window, iconified bool)

    fMouseButtonHolder func(w *Window, button MouseButton, action Action, mod ModifierKey)
    fCursorPosHolder   func(w *Window, xpos float64, ypos float64)
    fCursorEnterHolder func(w *Window, entered bool)
    fScrollHolder      func(w *Window, xoff float64, yoff float64)
    fKeyHolder         func(w *Window, key Key, scancode int, action Action, mods ModifierKey)
    fCharHolder        func(w *Window, char rune)
    fCharModsHolder    func(w *Window, char rune, mods ModifierKey)
    fDropHolder        func(w *Window, names []string)
        } 
Undocumented.

I think there are must be like in std go doc:

type` Window struct {
    // Has unexported fields.
}

func CreateWindow(width, height int, title string, monitor *Monitor, share *Window) (*Window, error)
func GetCurrentContext() *Window
func (w *Window) Destroy()
func (w *Window) Focus() error
func (w *Window) GetAttrib(attrib Hint) int
func (w *Window) GetClipboardString() (string, error)
func (w *Window) GetCursorPos() (x, y float64)
func (w *Window) GetFrameSize() (left, top, right, bottom int)
func (w *Window) GetFramebufferSize() (width, height int)
func (w *Window) GetGLXContext() C.GLXContext
func (w *Window) GetGLXWindow() C.GLXWindow
func (w *Window) GetInputMode(mode InputMode) int
func (w *Window) GetKey(key Key) Action
func (w *Window) GetMonitor() *Monitor
func (w *Window) GetMouseButton(button MouseButton) Action
func (w *Window) GetPos() (x, y int)
func (w *Window) GetSize() (width, height int)
func (w *Window) GetUserPointer() unsafe.Pointer
func (w *Window) GetX11Window() C.Window
func (w *Window) Hide()
func (w *Window) Iconify() error
func (w *Window) MakeContextCurrent()
func (w *Window) Maximize() error
func (w *Window) Restore() error
func (w *Window) SetAspectRatio(numer, denom int)
func (w *Window) SetCharCallback(cbfun CharCallback) (previous CharCallback)
func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback)
func (w *Window) SetClipboardString(str string)
func (w *Window) SetCloseCallback(cbfun CloseCallback) (previous CloseCallback)
func (w *Window) SetCursor(c *Cursor)
func (w *Window) SetCursorEnterCallback(cbfun CursorEnterCallback) (previous CursorEnterCallback)
func (w *Window) SetCursorPos(xpos, ypos float64)
func (w *Window) SetCursorPosCallback(cbfun CursorPosCallback) (previous CursorPosCallback)
func (w *Window) SetDropCallback(cbfun DropCallback) (previous DropCallback)
func (w *Window) SetFocusCallback(cbfun FocusCallback) (previous FocusCallback)
func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback)
func (w *Window) SetIcon(images []image.Image)
func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback)
func (w *Window) SetInputMode(mode InputMode, value int)
func (w *Window) SetKeyCallback(cbfun KeyCallback) (previous KeyCallback)
func (w *Window) SetMonitor(monitor *Monitor, xpos, ypos, width, height, refreshRate int)
func (w *Window) SetMouseButtonCallback(cbfun MouseButtonCallback) (previous MouseButtonCallback)
func (w *Window) SetPos(xpos, ypos int)
func (w *Window) SetPosCallback(cbfun PosCallback) (previous PosCallback)
func (w *Window) SetRefreshCallback(cbfun RefreshCallback) (previous RefreshCallback)
func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback)
func (w *Window) SetShouldClose(value bool)
func (w *Window) SetSize(width, height int)
func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback)
func (w *Window) SetSizeLimits(minw, minh, maxw, maxh int)
func (w *Window) SetTitle(title string)
func (w *Window) SetUserPointer(pointer unsafe.Pointer)
func (w *Window) ShouldClose() bool
func (w *Window) Show()
func (w *Window) SwapBuffers()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.