I'm curious, which Go packages are you using for your OpenGL bindings and for context creation/input? I recommend github.com/go-gl/glow/... and github.com/go-gl/glfw3.
It's like godoc.org, but for viewing the *source code* of any Go package on any branch/commit. It also has a Sublime Text-like symbols view for quick code navigation.
Here's a 2 minute screencast that shows it off.
And you can try it on your favorite Go package at http://gotools.org/. I hope you find it useful when you're doing Go development!
If done, it will benefit everyone looking at the source code of Go packages on gotools.org, so it's likely quite worth it!
I hope it'll help make updating your Go packages an easier and more fun experience!
The functionality should be equivalent to the GitHub Markdown API endpoint specified at https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode, except the rendering is performed locally.
See usage example at https://github.com/shurcooL/go/blob/master/u/u1/main.go
github_flavored_markdown package builds on top of blackfriday, bluemonday, github.com/sourcegraph/syntaxhighlight so the code is very short. It currently only supports highlighting for `diff` and `Go`, but other languages can be added analogously (syntaxhighlight can be used for most as a pretty good generic highlighter). I'm still looking for a good unified interface for all the highlighters to refactor that code. Issues/PRs welcome.
I've also added an example of how to generate a complete HTML page, including the required CSS style sheet.
With that perspective, I'm noticing a common pattern across the go/... packages and the example in this article series (unsurprisingly, since it follows the go/... structure very closely).
The pattern is that attention is given to many important aspects, like being able to print errors with exact file name and line number, etc.
However, one aspect does not seem to be given attention: the ability to make (various degrees of) direct modifications to the AST.
It's not completely surprising, given that modifying ASTs is not their primary use. That said, I am curious what it would look like if being able to easily modify ASTs while preserving/updating line numbers and other properties that freshly parsed ASTs have was a goal.
Is it easy to add this "requirement"? What's the best way to go about it, and how negatively would it affect other design goals, etc. This is something I'm thinking about now.
- York UniversityComputer Science, 2009 - 2011
Compiler Part 1: Introduction to Writing a Compiler in Pure Go
Introduction I've long been interested in learning how a compiler works. Cryptic compiler messages and odd behaviours have always baffled me
Go-spew: A Journey into Dumping Go Data Structures | Cyphertite Blog
While it is clearly better to have access to a fancy debugger when debugging your applications, sometimes it just isn't practical depending
OnLive CEO reveals 'entirely new approach' to wireless, credits ...
'In advance, yes -- you're right, it's impossible. But nonetheless, we have ten radios all working at the same frequency, all at
An In-Depth Video Preview of the iOS OnLive App, Moments Before my Build...
An In-Depth Video Preview of the iOS OnLive App, Moments Before my Build Expires:First announced at GDC in 2009, few people actually believe
How to Burn Your Own OS X Lion Install DVD or USB Drive
Getting Lion from the App Store is convenient, but if you want a physical copy of the installation, you can easily make your own Lion instal
You Can Bring A Goat To The Apple Store - MacRumors.com
The Apple Store is a pretty laid back place, with friendly staff who will help you pick out a computer -- or, if you'd prefer, leave you alo
Official Google Blog: Step inside the map with Google MapsGL
Step inside the map with Google MapsGL. 10/13/2011 07:20:00 AM. You're now one step closer to experiencing and interacting with a 3D mir