Posts by navossoc • 346 points
11 posts
-
4
votes1
answer303
viewsA: How to search a letter in a string with Golang?
I don’t know where you intend to use this code, but an alternative solution would be the use of regular expressions. package main import ( "fmt" "os" "regexp" ) func main() { s := "IiiiIiII a A…
-
0
votes2
answers67
viewsA: What is the best performance in comparison of string sizes?
I don’t think this is the kind of thing that someone is writing olá mundo you should be worried. If you really want to know which one is better or worse, the ideal is for you to look directly at the…
-
3
votes1
answer647
viewsA: Connecting Go with Mongodb using Docker
As I am also "joking" with Docker recently, I decided to do some tests. main go. package main import ( "fmt" "os" mgo "gopkg.in/mgo.v2" ) func main() { url := os.Getenv("MONGO_URL")…
-
0
votes1
answer323
viewsA: Wait 3 seconds when click close console
I think that’s what you want... using System; using System.Runtime.InteropServices; using System.Threading; namespace ConsoleApp1 { class Program { //…
-
5
votes1
answer410
viewsA: Golang - Doubt about pointers
The best definition I’ve ever heard on this subject was this:: Pointers are for sharing. Usually this doubt comes down to a question of semantics. For example: You create a value of type…
-
1
votes2
answers921
viewsA: Import/insert other files - go (golang)
Golang uses a package system, so there’s no way you can import "a single file". I don’t know what your situation is there exactly, but if both files belong to the same package, then there is no need…
-
0
votes1
answer107
viewsA: Download package using "go get"
I believe the problem is your environment variable GOPATH, to GOROOT seems to be right. You should point the variable to the directory you want to be your Workspace. Here, for example, is configured…
-
0
votes3
answers897
viewsA: C# hangfire stopping
The official documentation explains how to resolve this: http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html Basically, you need to change the "Start…
-
0
votes3
answers2597
viewsA: How to write commands in a console program through a batch (.bat) file?
You don’t need this. You are using ftp.exe from Windows itself, right? Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used…
-
0
votes4
answers1141
viewsA: How to simulate "tail recursion" in C#?
I may be talking nonsense right now, but I believe Jcködel’s answer is incorrect. I believe that you only managed to compute such a large factorial number precisely because you are using the 64-bit…
-
3
votes1
answer1685
viewsA: jQuery not working on Internet Explorer
By chance when opening index.html in Internet Explorer did you check if there was no security policy preventing the execution of scripts? It’s usually something like. I tested the example in Codepen…