This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example | |
package main; | |
import ( | |
"jsonhelper" | |
"fmt" | |
) | |
func main(){ | |
jsonValue := []interface {}{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Double getNumericValueFromLiteralExpr(GoExpr expr) { | |
if (expr instanceof GoLiteralExpression){ | |
GoLiteral literal = ((GoLiteralExpression) expr).getLiteral(); | |
if (literal instanceof GoLiteralIdentifier){ | |
if (((GoLiteralIdentifier) literal).isIota()){ | |
Integer iotaValue = ((GoLiteralIdentifier) literal).getIotaValue(); | |
if (iotaValue != null) | |
return iotaValue.doubleValue(); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
type MyArray [3]string | |
type MyArray2 MyArray | |
func HandleMyArray(a MyArray) { | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback: | |
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response | |
114. response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper | |
430. return self.admin_site.admin_view(view)(*args, **kwargs) | |
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view | |
99. response = view_func(request, *args, **kwargs) | |
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func | |
52. response = view_func(request, *args, **kwargs) | |
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner |
NewerOlder