I think your GOROOT and GOPATH is causing the issue.
"fmt" package is present inside {go_installation_dir}\src and not
{go_installation_dir}\bin\src.
Unset the GOROOT and GOPATH environment variables using the following
commands to unset the GOROOT and GOPATH environment variables temporarily:
There are some options to increase the local storage on an instance, but
compute engine is probably a better solution for something like that.
> On Jan 17, 2019, at 7:16 PM, Chris FractalBach wrote:
>
> So I noticed this post: https://blog.golang.org/appengine-go111
>
> And especially noticed
On Thu, Jan 17, 2019 at 5:41 PM wrote:
>
> hay
> Help, while I'm running and getting this error
>
>
> cannot find package "fmt" in any of: C:\Go\bin\src\fmt (from $GOROOT)
> C:\Users\HP\go\src\fmt (from $GOPATH) package . imports runtime: cannot find
> package "runtime" in any of: C:\Go\bin\src\
Hi everyone,
I'm trying to get an existing project which outputs multiple binaries
to work with go modules. The package follows roughly the recommended
layout: https://github.com/golang-standards/project-layout
That is, it looks like
/go.mod
/go.sum
/code.go
/cmd/foo/main.go
/cmd/bar/main.go
I
hay
Help, while I'm running and getting this error
cannot find package "fmt" in any of: C:\Go\bin\src\fmt (from $GOROOT)
C:\Users\HP\go\src\fmt (from $GOPATH) package . imports runtime: cannot
find package "runtime" in any of: C:\Go\bin\src\runtime (from $GOROOT)
C:\Users\HP\go\src\runtime (fr
Hello gophers,
We plan to issue Go 1.11.5 and 1.10.8 on Wednesday, January 23 at
approximately 8pm UTC (12pm PST, 3pm EST).
These are minor releases to fix a security issue.
Following our policy at https://golang.org/security, this is the
pre-announcement of those releases.
Cheers,
Julie on beh
So I noticed this post: https://blog.golang.org/appengine-go111
And especially noticed this part:
Furthermore, the application code is completely portable—there are no ties
> to the infrastructure that your application is deployed on.
So I wanted to try it out! Just to keep things simple, I r
You're playing in a space where there are NP-complete problems, as
described in part
by
https://leaflessca.wordpress.com/2017/02/12/dll-hell-and-avoiding-an-np-complete-problem/
Run screaming from the building (;-))
--
You received this message because you are subscribed to the Google Groups
go list ./...
пятница, 18 января 2019 г., 1:26:02 UTC+3 пользователь Francis Chuang
написал:
>
> Thanks, Justin and Harmen.
>
> I deleted my go.mod and go.sum, then ran "go mod init ..." and "go test".
> The list of dependencies in go.mod and go.sum is now a lot slimmer. I tend
> to run my test
It depends on the nature of the verb (method) and whether it's being used
to refer to the subject or the object, whether it is transitive or
intransitive, and all the rest of that messy human grammar nonsense. Which
is why trying to align the with justifications to English grammar is a
fool's erran
Thanks, Justin and Harmen.
I deleted my go.mod and go.sum, then ran "go mod init ..." and "go test".
The list of dependencies in go.mod and go.sum is now a lot slimmer. I tend
to run my test suites in a bunch of docker containers, so "go test" fails
for me when blindly executed from the root of
Singletons are not an “anti-pattern”. They are used incorrectly by many, so
they become anti-patterns in the general case.
A proper use of singletons - and usually they are behind the scenes so you
don’t even know they are a singleton - is the proper design for many
architectures - especially f
Quoting Space A. (2019-01-17 16:46:17)
> Go's package-level variables are also not "globals". And you can
> control access with exported/unexported names or exported/unexported
> package-level functions.
Exactly. A namespaced global is still a global, and most of the problems
with them still appl
Go's package-level variables are also not "globals". And you can control
access with exported/unexported names or exported/unexported package-level
functions.
PS: In Java everything is "class".
четверг, 17 января 2019 г., 23:31:34 UTC+3 пользователь robert engels
написал:
>
> Java does not ha
Java does not have “global” variables. All data access is via a Class, and then
possibly and instance of a Class. Contrast this with “globals” in C - the
variable - if declared external is visible to all code anywhere (there are more
modern ways to namespace this for some level of protection).
> They are not global variables, they are class variables. There's a
> huge difference.
Can you elaborate? I don't see a meaningful difference vs. Go's
package-level var.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this g
Hi Mahendra, allow me to point something, as far i can see on this matter,
there are two things i would like to address separately:
1) Making a REST API for you application (that can be accessed through http
(e.g: an app running in a web server) or, why not?, locally (e.g: an app
running that u
On 16 Jan 2019, at 15:42, Victor Giordano
mailto:vitucho3...@gmail.com>> wrote:
As far i can get to understand the english language (i'm not a native speaker),
the "er" seems to denotes or describe things in a more "active way" (the thing
that they actually do by itself), and the "able" describ
On Fri, Jan 18, 2019 at 07:18:41AM +1300, Justin Israel wrote:
> On Fri, Jan 18, 2019, 12:36 AM Francis Chuang wrote:
>
> > Hey everyone,
> >
> > I was wondering if I can get some ideas on how to solve this dependency
> > problem with Go modules. I am using Go 1.11.4 on Linux (Windows Subsystem
>
On Fri, Jan 18, 2019, 12:36 AM Francis Chuang wrote:
> Hey everyone,
>
> I was wondering if I can get some ideas on how to solve this dependency
> problem with Go modules. I am using Go 1.11.4 on Linux (Windows Subsystem
> for Linux to be exact).
>
> The first part of the problem is that for one
I don't think the problem is well-defined or single-solution. Surely the
simplest solution, given a single output and the data that produced it is
to simply encode the entire output text in the template and ignore the data.
Instead, I think you need a matching corpus - i.e. a list of pairs of
o
Actually, in many cases they are even more restrictive instance variables. They
are not global in any sense.
Furthermore, in most common usage they are read only.
In my experience, they are used in very localized settings to avoid
construction of non thread safe objects for performance, or th
They are not global variables, they are class variables. There’s a huge
difference.
> On Jan 17, 2019, at 2:32 AM, alex.besogo...@gmail.com wrote:
>
>> On Wednesday, January 16, 2019 at 1:33:57 PM UTC-8, Ian Lance Taylor wrote:
>> In particular everybody understands that the new thread will not
Hey everyone,
I was wondering if I can get some ideas on how to solve this dependency
problem with Go modules. I am using Go 1.11.4 on Linux (Windows Subsystem
for Linux to be exact).
The first part of the problem is that for one of my libraries, I am
importing github.com/hashicorp/vault/api,
Thanks Ian
On Thursday, January 17, 2019 at 2:29:55 PM UTC+5:30, Ian Davis wrote:
>
> On Thu, 17 Jan 2019, at 8:13 AM, aniruddh...@nytimes.com
> wrote:
>
> Hi I am using NYT's Marvin framework which internally uses gorilla mux. I
> am able to delete single record when I pass single id as json o
On Thu, Jan 17, 2019 at 9:35 AM Fei Ding wrote:
> map[string]chan int
> I can understand that the map forbids concurrent read/write, but in my
case, it actually forbid concurrent r/w to the channel, which is the basic
operation.
>
> The panic is something like:
>
> goroutine 1661 [running]:
> run
On Thu, 17 Jan 2019, at 8:13 AM, aniruddha.dwiv...@nytimes.com wrote:
> Hi I am using NYT's Marvin framework which internally uses gorilla mux. I am
> able to delete single record when I pass single id as json object in request
> body using postman but I don't know how to handle array of json obj
Hi
I met a panic() when trying to manage channal by dict, as
map[string]chan int
I can understand that the map forbids concurrent read/write, but in my
case, it actually forbid concurrent r/w to the channel, which is the basic
operation.
So how to implement this request correctly?
The panic i
On Wednesday, January 16, 2019 at 1:33:57 PM UTC-8, Ian Lance Taylor wrote:
> In particular everybody understands that the new thread will not have
> access to any of the thread local
> variables of the parent thread.
>
To be fair, Java does have InheritableThreadLocal variables that are
autom
No. Just no.
TLS is just another form of global variables and suffers from the same
problems. I.e. the "magic action at a distance" - it's impossible to
understand what changes it without checking the whole program.
In particular, transactions, current users and other crap should NEVER go
into
Hi I am using NYT's Marvin framework which internally uses gorilla mux. I
am able to delete single record when I pass single id as json object in
request body using postman but I don't know how to handle array of json
objects here. My code is as below:-
For decoding ---
func DecodeDeleteUser(
31 matches
Mail list logo