, there are some external scripts called (like
>> gen-ldflags.sh) and docker build is just invoking "make build" inside
>> docker container. I do not use this for CI (GitLab CI is already setup to
>> use docker images), so that is why I use latest tag (in CI I use explici
does anyone use docker golang image to compile? if so,how is your setup?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
I am running a service (web) type job.
It takes 30-40 secs for the job to start up when I do it manually.
Is there anything in nomad which will kill the job if it doesn't start in X
secs?
I am having a strange issue where the job starts up sometimes and sometimes
it fails.
If I do nomad allo
ithub.com/stamblerre/gocode
>
> That said, I haven't personally had any luck with that fork either. I
> would love to hear from someone who's had success with
> gocode/vim-go/modules.
>
> On Fri, Nov 9, 2018 at 1:03 PM Keith Brown > wrote:
>
>> Using vim-go
&
Using vim-go
Has anyone gotten gocode (https://github.com/mdempsky/gocode) to work with
golang modules?
In my GOPATH directory, i see
gopath
pkg
mod
cache
download
github.com
But for whatever reason, its not autocompletting the modules.
Is there anything else I sho
202 for a POST/GET etc...
On Friday, April 20, 2018 at 8:26:24 AM UTC-4, John Shahid wrote:
>
>
> Keith Brown > writes:
>
> > I would like to have a tool for testing infrastructure components. I
> > stumbled across Ginkgo. Does anyone use it?
>
> Yes, it is be
I would like to have a tool for testing infrastructure components. I
stumbled across Ginkgo. Does anyone use it? Does it need a go compiler for
tests? My intention is to write simple tests, "Is server up?". "Does the
file contain abc". But I don't want to have the go compiler installed to
run
t; Consider putting each ishell.Cmd in a separate file. Otherwise you can put
> them in a slice var so you don’t have to AddCmd each one explicitly.
>
> I’m not sure what defining a struct accomplishes, can you provide more
> detail?
>
> Matt
>
> On Tuesday, April 17, 2018 at
I am writing an interactive CLI tool which looks like this, using
abisoft/ishell
./tool
>>> help
Sample Interactive Shell
>>> help
Commands:
clear clear the screen
greet greet user
exit exit the program
help display help
>>> greet Someone Somewhere
Hello Someone S
Are there any open source projects which use net/http exclusively? I am
building something and would like to follow the best practices of a
project. I need to visualize a lot of json data in a form of tables/charts.
--
You received this message because you are subscribed to the Google Groups
I want to pick up good practices when developing my go code. Is there a
package which I can study and comprehend for newbies? I mainly use
effective go but would like to see more examples of good software/code
design layout.
BTW, in Python I always followed twisted as my examples for testing,
is there a page such as "https://github.com/yksz/go-design-patterns"; I can
refer to for golang design-patterns? I wish there were some official ones,
which can help language newbies and give them confidence that what they are
doing is the "right way". I understand it depends on the problem but
I am trying to Serve a webpage while running a ticker in the background. I
am trying to generate a random number, genRandom() , periodically and
publish it on a channel so generic() can see the results. I have something
like this https://play.golang.org/p/6d1xmqpUYY7 but I don't know how to get
Are there any tools written in go that are similar
to http://robotframework.org/ ? I like Robotframe work because its simple
to write test but the downside is I either need python or jre installed to
run the tests. This is a burdon.
Ideally, it would be great if there was a single binary I can
is it possible to analyze python remote objects in go? we have several
people using it and i would like to view the calls using go.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,
I am trying to use golang and swagger but I am confused on what package I
should use:
There is: https://github.com/go-swagger/go-swagger or
https://github.com/yvasiyarov/swagger
Does anyone use Swagger with go and any tips would be much appreciated.
--
You received this message because you ar
sure, in line 16.
So, don't continue means I can do this?
ch <- Result{500}
return
On Saturday, November 4, 2017 at 5:26:37 PM UTC-4, Tamás Gulácsi wrote:
>
> If err!=nil, response is nil, too - so don't continue!
--
You received this message because you are subscribed to the Google Groups
Hi All
Using goroutines to do some load testing on a webserver.
I have some code like this, https://play.golang.org/p/e2_ecJN0l4
It works but when the server get overloaded it returns an RSP. I would like
to gracefully catch that and put an appropriate status code such as 500.
The exact error
Cool tool.
Are there any native golang tools simar to this which work on
Windows/Linux/OSX?
On Thursday, November 2, 2017 at 9:42:27 PM UTC-4, Ben Hoyt wrote:
>
> That looks really neat. I will dive into the code!
>
> I'm very curious how the performance of Skylark in Go compares to Skylark
>
Here is a scenario: a high traffic site which executes costly operations
(database / filesystem / compute heavy operations). The web server is
running standard go/http/server.
I would like to handle at most 100 requests and the remainder to queue --
all while the client (curl) is waiting. Are t
Coming from Python, I was told to use study Twisted Matrix code 7 years. I
haven't regretted it. Take a look at it
yourself, http://twistedmatrix.com/documents/16.1.0/core/howto/trial.html .
Now, as I learn golang, are there any worth while projects I can use as
reference for writing high qua
go/commit/01389b966ed81fad6e5fac3e98fe46e162645659
>
> On Sat, May 13, 2017 at 6:28 AM, Keith Brown wrote:
>> I am learning basic data structures and I chose golang since it provide C
>> like pointers. While looking at list.go I noticed this in the Element struct
>>
>>
&
I am learning basic data structures and I chose golang since it provide C
like pointers. While looking at list.go I noticed this in the Element struct
type Element {
next, prev *Element //makes sense. Doubly linked list
list *List //Why! I don't understand why there is a pointer to List
Value
ot;
> )
>
> func square(x int) int {
> return x * x
> }
>
> func cube(x int) int {
> return x * x * x
> }
>
> func main() {
> ticker := time.NewTicker(5 * time.Second)
>
> for range ticker.C {
> fmt.Println(square(10))
> fmt.Println(cube(10))
> }
>
Oddly, I can't find a single example on the world wide web for what I am
trying to do.
I have 2 functions which I want to run on a periodic basis. The functions
are square and cube.
Here is my code so far. https://play.golang.org/p/akMxcg2Sra
But, I am not sure how to schedule these functions.
I am writing a webapp using go. It will server about 200 people but will be
highly dynamic so efficiency is important for me.
The app will contact 2 segments. 1) collect data by running few commands.
The data will be around 30/40 MB. I plan to run it periodically, say 20
secs. The data wil
26 matches
Mail list logo