Posts by Aristofanio Garcia • 211 points
4 posts
-
2
votes1
answer86
viewsA: Why is creating a variable size Slice slower?
In golang when you create a constant it is a literal, a scalar value that may or may not be named. In other words, its value or expression is directly defined at compile time as if we had written…
golanganswered Aristofanio Garcia 211 -
1
votes1
answer145
viewsA: Importing local libraries into GO
First create the following folder structure: /path/to/app |-main.go |-src |-test |-test.go Make sure that /path/to/app is included in GOPATH. Otherwise, include it: $ # em linux $ cd /path/to/app $…
-
0
votes1
answer108
viewsA: using twitter api with golang
Your code has a diversity of problems! The first is that you’re using t with an incorrect format. The expected format for oauth_timestamp is timestamp in seconds. See the difference: //erro #1 t :=…
-
2
votes2
answers123
viewsA: Andorid - Open Activity only once
First, conceptually the first time of use of an application, if the control is offline, is done directly by the application itself, that is, you need to do this control yourself. You can do this in…