eefret/gotranslate — pull request #1 by darknesto (2014-10-03 06:25:20+00:00)
Title: Removing repeated type casting and function call overhead

The function **Valid** of the **Lang** struct does 2 type castings, and checks for the size of **langs** every time it is called. Since there is no gonna be changes at runtime, I think it would be better to have some kind of control variable of the appropriate type ready to compare against to avoid the overhead.