Skip to content

Instantly share code, notes, and snippets.

@sunho
Created January 13, 2018 21:37
Show Gist options
  • Select an option

  • Save sunho/aeed6a6ab32fc278cf4bb07720b6c237 to your computer and use it in GitHub Desktop.

Select an option

Save sunho/aeed6a6ab32fc278cf4bb07720b6c237 to your computer and use it in GitHub Desktop.
package classes
const (
ObjectClass = "Object"
ClassClass = "Class"
IntegerClass = "Integer"
FloatClass = "Float"
StringClass = "String"
ArrayClass = "Array"
HashClass = "Hash"
BooleanClass = "Boolean"
NullClass = "Null"
ChannelClass = "Channel"
RangeClass = "Range"
MethodClass = "method"
PluginClass = "Plugin"
GoObjectClass = "GoObject"
FileClass = "File"
RegexpClass = "Regexp"
MatchDataClass = "MatchData"
GoMapClass = "GoMap"
DecimalClass = "Decimal"
BlockClass = "Block"
)
@sunho
Copy link
Author

sunho commented Jan 13, 2018

using subpackage to store a set of constants is not a bad code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment