Questions tagged as 'go'

2
answers

UTF8 Encode and Decode in GO Golang

I would like to know how I can apply the utf8 to a string in golang. Investigating in the documentation , do the following: I am making a query to a database and in the field the following information is stored ANDRÉS NUÑEZ when makin...
asked by 29.05.2018 / 13:50
1
answer

How to initialize a composite structure with json tags

I want to initialize a composite structure. The composite structure has json tags, and when running the program it shows something like the following: go run struct.go # command-line-arguments ./struct.go:23:11: cannot use struct { Lat float3...
asked by 28.08.2017 / 10:57
2
answers

golang: client declared and not used

I'm doing tests with the go library for elasticsearch: link I have the following code that is my library to connect to the Elasticsearch server: package elasticsearch import ( "fmt" "os" elastic "gopkg.in/olivere/elastic.v5"...
asked by 19.08.2017 / 22:39
0
answers

How to Create APIRest With Go and ECHO Framework?

I am trying to do a APIRest with the framework ECHO for the language GO , but I find the following difficulty, what I want is to make a request fetch with javascript , in where I send in the header of an i...
asked by 08.10.2018 / 21:54
1
answer

How to assign a default image to a user account in GO?

I am creating a user login, but I want to create a user image, as a base image, when I create the created user, by this I mean for example facebook , that at At the moment you create an account, a pictogram of a man or a woman appears as a...
asked by 12.08.2018 / 14:03
1
answer

golang framework gin problems when running govendor fetch

I'm trying the next gin that is a go framework link The installation process takes the following steps: Go get govendor $ go get github.com/kardianos/govendor Create your project folder and cd inside $ mkdir -p $GOPATH/src/...
asked by 22.04.2018 / 20:28
0
answers

Syscall on Go: winapi error

I'm migrating a C # to Go project that requires the use of DLLs, based on this link I started to Working with DLLs in Go, I was able to successfully call several functions but get to a function where I could not move forward. This is an exa...
asked by 21.04.2018 / 00:47
1
answer

how to start a project in Kataras iris?

It turns out that I'm new to the Framework, and it took me a while to understand how to handle the views in Kataras / iris but I still could not create my main Index page if someone could give me a page or example of how to build the project str...
asked by 01.10.2017 / 00:39
2
answers

import cycle not allowed

Good morning, I'm debugging a system that is made in kataras / iris the framework for Go, running in terminal my go run main.go I get the following error import cycle not allowed package main imports ./src/Controladores/ExpresionRegula...
asked by 26.09.2017 / 13:38
1
answer

Handle mismatched type of type [] String, bson and time.time in golang

Good afternoon colleagues, I come with the following question I am developing in an Iris framework and I have encountered the following problem, the manipulation of data types  my code is this: //ExpresionRegularMgo estructura de ExpresionRegu...
asked by 26.09.2017 / 17:07