Re: [go-nuts] Line wrapping and the lack of some convention

2019-09-07 Thread Sotirios Mantziaris
Thanks for the link, this clears things out a bit. On Fri, 6 Sep 2019 at 02:21, Ian Lance Taylor wrote: > On Thu, Sep 5, 2019 at 10:59 AM Sotirios Mantziaris > wrote: > > > > I would liked that gofmt would handle this one also in order to avoid > battles about what is the

[go-nuts] Line wrapping and the lack of some convention

2019-09-05 Thread Sotirios Mantziaris
Hi, I would liked that gofmt would handle this one also in order to avoid battles about what is the correct line wrapping in go. In Effective Go there is a section, with smaller fonts than the usual document that states: Line lengthGo has no line length limit. Don't worry about overflowing a

[go-nuts] ANN: Harvester, an easy to use dynamic configuration package

2019-06-04 Thread Sotirios Mantziaris
Hi, i would like to announce a new package that can be used to dynamically reconfigure your application without having the need to restart it. https://github.com/beatlabs/harvester Feedback is highly appreciated. -- You received this message because you are subscribed to the Google Groups

[go-nuts] ANN: Harvester, a easy to sue dynamic configuration package

2019-06-04 Thread Sotirios Mantziaris
Hi, i would like to announce a new package that can be used to dynamically reconfigure your application without having the need to restart it. Features: - Handling static config like seed values, env vars - Handling dynamic changing values with Consul support - Extensible via interfaces

Re: [go-nuts] reflect Call method on nested struct

2019-05-29 Thread Sotirios Mantziaris
s: > > https://play.golang.org/p/AxPE0K_ivxP > > On Wednesday, May 29, 2019 at 11:56:42 AM UTC+2, Sotirios Mantziaris wrote: >> >> Ok, found it. I should have used the reflect.ValueOf... >> >> On Wednesday, May 29, 2019 at 12:53:13 PM UTC+3, Sotirios Mantziari

Re: [go-nuts] reflect Call method on nested struct

2019-05-29 Thread Sotirios Mantziaris
Ok, found it. I should have used the reflect.ValueOf... On Wednesday, May 29, 2019 at 12:53:13 PM UTC+3, Sotirios Mantziaris wrote: > > I did found out that the setter method has to accept a pointer to string. > I have a complete example now which unfortunately don't work correclty. &g

Re: [go-nuts] reflect Call method on nested struct

2019-05-29 Thread Sotirios Mantziaris
UTC+3, Jan Mercl wrote: > > On Wed, May 29, 2019 at 9:42 AM Sotirios Mantziaris > > wrote: > > > I am getting the nested "Name" struct but there are no methods to call. > > What am i doing wrong (besides using reflection :))? > > The method has a

Re: [go-nuts] reflect Call method on nested struct

2019-05-29 Thread Sotirios Mantziaris
you are a live saver. thanks very much. reflection is of of these things in any language i suppose. On Wed, 29 May 2019 at 10:46, Jan Mercl <0xj...@gmail.com> wrote: > On Wed, May 29, 2019 at 9:42 AM Sotirios Mantziaris > wrote: > > > I am getting the

[go-nuts] reflect Call method on nested struct

2019-05-29 Thread Sotirios Mantziaris
Hi, i have a nested struct and i want to call a method on a field. type String struct { value string } func (s *String) Set(value string) { s.value = value } type Config struct { Name String } I am getting the nested "Name" struct but there are no methods to call. What am i doing wrong

Re: [go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
; Since everything is reference you don’t face this distinction. Which is why > most Go uses channels, which are implemented with locks. > > > On May 26, 2019, at 1:16 PM, Jan Mercl <0xj...@gmail.com > > wrote: > > > > On Sun, May 26, 2019 at 8:05 PM Sotir

Re: [go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
I was thrown of by the previous comment. I think i will create some "atomic" types that handle using mutexes with setter and getter methods. Thanks Jan On Sunday, May 26, 2019 at 9:17:44 PM UTC+3, Jan Mercl wrote: > > On Sun, May 26, 2019 at 8:05 PM Sotirios Mantziaris > &

Re: [go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
t; scenarios. But you need to allocate new objects not modify existing ones (a > big reason GC platform strings are usually immutable). You can do the same > in Go. > > On May 26, 2019, at 11:17 AM, Sotirios Mantziaris > wrote: > > I understand, i have to synchronize acce

Re: [go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
: > > On Sun, May 26, 2019 at 4:03 PM Sotirios Mantziaris > > wrote: > > > Let's assume that the string field Name has the value `Mr. Smith` and we > change this to `Mr. Anderson` in the goroutine, what are the possible > values that i could bet on a read? >

Re: [go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
consistent. If there is another possible outcome then i need to synchronize the access and refactor a lot. On Sunday, May 26, 2019 at 4:58:02 PM UTC+3, Jan Mercl wrote: > > On Sun, May 26, 2019 at 3:45 PM Sotirios Mantziaris > > wrote: > > > Is there a chance that reading

[go-nuts] Data race question in config package of harvester

2019-05-26 Thread Sotirios Mantziaris
i am working on a library for configuration named harvester( https://github.com/taxibeat/harvester), which will be soon properly open sourced, where i can dynamically reconfigure the configuration from an outside system (consul). The user provides a struct with some tags type testConfig struct

Re: [go-nuts] Forking/transfering a repository and import paths

2018-12-30 Thread Sotirios Mantziaris
ent meta tags based > on a work IP vs not or a local /etc/hosts override to a different vanity > url host). I’m not terribly familiar with them but in theory it should > allow the same import path in both repos but it would likely result in some > confusing issues. I don’t think it’s a

Re: [go-nuts] Forking/transfering a repository and import paths

2018-12-28 Thread Sotirios Mantziaris
If i understand it correctly the proposed solutions does not solve the problem of forking repos. The ideal solution would be to have a import path agnostic of the repo location so that a fork could be up and downstream compatible. On Thursday, December 13, 2018 at 12:32:11 AM UTC+2, Ian Lance

Re: [go-nuts] Forking/transfering a repository and import paths

2018-12-13 Thread Sotirios Mantziaris
Hi, if i understood correctly this solves the location of the repository path but the repo path will still point to the old repo. It would be nice if the repo location could be anywhere and the import path anything e.g. hosted on any machine with the root package name be something different

Re: [go-nuts] Re: Forking/transfering a repository and import paths

2018-12-12 Thread Sotirios Mantziaris
would this one the problem of forking or transfer to another account? The go module path would still be the old one. Like mentioned before it would be nice if the hosting path and the module path could be different e.g. hosting path github.com/mantzas/test module path "test". On Thu, Dec 13, 2018

[go-nuts] Re: Forking/transfering a repository and import paths

2018-12-12 Thread Sotirios Mantziaris
or-no-reason regex searching doesn't help either. > > It's not difficult, just tedious, and it would be nice if there was > relative paths allowed for imports. > > On Wednesday, 12 December 2018 13:12:53 UTC+1, Sotirios Mantziaris wrote: >> >> Hi, >> >> i want to

Re: [go-nuts] Forking/transfering a repository and import paths

2018-12-12 Thread Sotirios Mantziaris
stem inside > $GOPATH/src > -wgr > > On Wed, Dec 12, 2018, 10:13 AM Sotirios Mantziaris > wrote: > >> Hi, >> >> i want to move a repo from my github account to another one. Goal is to >> have a new import path for the new forked repository. >> There ar

[go-nuts] Forking/transfering a repository and import paths

2018-12-12 Thread Sotirios Mantziaris
Hi, i want to move a repo from my github account to another one. Goal is to have a new import path for the new forked repository. There are 2 ways of achieving the move: - Forking - Transfer repository Is it possible to fork a repo and change the import path of the repository? If the

Re: [go-nuts] go modules and Dockerfile

2018-09-19 Thread Sotirios Mantziaris
Awesome thanks On Wednesday, September 19, 2018 at 10:40:30 PM UTC+3, Justin Israel wrote: > > > > On Thu, Sep 20, 2018, 6:09 AM Sotirios Mantziaris > wrote: > >> hi, >> >> i am trying to build a container that supports modules and i get the >> follo

[go-nuts] go modules and Dockerfile

2018-09-19 Thread Sotirios Mantziaris
hi, i am trying to build a container that supports modules and i get the following error: ↳ docker build . -t test

[go-nuts] Re: Delve 1.1.0 is released

2018-08-17 Thread Sotirios Mantziaris
Thanks very much for making delve. Without a debugger go might not be on my radar! On Friday, August 17, 2018 at 2:01:54 AM UTC+3, Derek Parker wrote: > > Announcing Delve v1.1.0! > Tons of fixes and improvements including: * Go 1.11 support * Initial > support for function & method calls

Re: [go-nuts] streadway/amqp (RabbitMQ) manual Ack does not work after first message

2018-08-14 Thread Sotirios Mantziaris
c'mon, this is so stupid... thanks man very much, this was actually the problem! Kudos for finding the culprit! On Wednesday, August 15, 2018 at 12:44:20 AM UTC+3, Justin Israel wrote: > > > > On Wed, Aug 15, 2018 at 9:33 AM Sotirios Mantziaris > wrote: > >> I can see

Re: [go-nuts] streadway/amqp (RabbitMQ) manual Ack does not work after first message

2018-08-14 Thread Sotirios Mantziaris
but the code does not get it at all... On Tuesday, August 14, 2018 at 10:59:15 PM UTC+3, Justin Israel wrote: > > > > On Wed, Aug 15, 2018, 2:14 AM Sotirios Mantziaris > wrote: > >> hi, >> >> i have setup a "consumer" for a rabbitmq queue. Every deliv

[go-nuts] streadway/amqp (RabbitMQ) manual Ack does not work after first message

2018-08-14 Thread Sotirios Mantziaris
hi, i have setup a "consumer" for a rabbitmq queue. Every delivery is put in a channel which is picked up by a goroutine. After processing the delivery is then Ack or Nack based on the success of the processing. It seems that the first one is processed ok but the rest cannot be Ack/Nack. The ui

Re: [go-nuts] Re: [ANN] parwork - a fork-join package for processing work in parallel written in go

2018-03-15 Thread Sotirios Mantziaris
godoc.org/github.com/juju/utils/parallel#Run, a slightly > simpler approach to the same issue, and just about as general, I > think. > > On 15 March 2018 at 08:19, Sotirios Mantziaris <smant...@gmail.com > > wrote: > > since the lack of generics i am trying to avoid

[go-nuts] Re: [ANN] parwork - a fork-join package for processing work in parallel written in go

2018-03-15 Thread Sotirios Mantziaris
tion, > otherwise returns nil. > // Processes work at the pace of runtime.NumCPU() parallelization. > func Process(callback func(interface{}), work ...func() (interface{}, > error)) error > > Matt > > On Wednesday, March 14, 2018 at 3:54:24 PM UTC-5, Sotirios Mantziaris

[go-nuts] [ANN] parwork - a fork-join package for processing work in parallel written in go

2018-03-14 Thread Sotirios Mantziaris
Hi, i have created a package which uses the fork-join model to parallelize work. Check out my blog and the Github repository. Any feedback is highly welcome. Thanks -- You

[go-nuts] Debugging unit tests in go

2018-03-08 Thread Sotirios Mantziaris
Visual studio code with go extension which uses delve. Just works like a charm. -- 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

Re: [go-nuts] Re: Why is there no standard `uuid` package?

2018-02-09 Thread Sotirios Mantziaris
i agree that since there exist a RFC it should not be that much of a problem. On Friday, February 9, 2018 at 9:52:33 AM UTC+2, Henry wrote: > > @axel: The specification for UUID is defined in RFC 4122. You are free to > use it or create your own variants. However, the specs is there. -- You

[go-nuts] Re: Why is there no standard `uuid` package?

2018-02-08 Thread Sotirios Mantziaris
i agree that there should be a std package version of uuid like in almost every other language. On Thursday, February 8, 2018 at 3:43:08 AM UTC+2, 高橋誠二 wrote: > > Recently satori/go.uuid took a breaking change of API, and some of > frameworks which depend on the package. > And google/uuid is

[go-nuts] Re: Golang crashes windows console

2017-11-13 Thread Sotirios Mantziaris
hi, i had the same issue. My fix was to upgrade or downgrade git. The latest git version 2.15.0.windows.1 works ok. On Monday, November 13, 2017 at 5:33:55 PM UTC+2, Patrick Hadlaw wrote: > > I've posted my problem on stack overflow and could not fix it! > >

Re: [go-nuts] Re: Zero-dependency, small codebase logger which supports StackDriver (Kubernetes) logging.

2017-11-08 Thread Sotirios Mantziaris
i see a lot of open source under MIT and Apache-2.0, which is pretty straightforward and clean. On Wednesday, November 8, 2017 at 4:20:11 PM UTC+2, Jan Mercl wrote: > > On Wed, Nov 8, 2017 at 3:15 PM Sotirios Mantziaris <smant...@gmail.com > > wrote: > > >

[go-nuts] Re: Zero-dependency, small codebase logger which supports StackDriver (Kubernetes) logging.

2017-11-08 Thread Sotirios Mantziaris
BSD 3-clause? This might be a problem for some. On Wednesday, November 8, 2017 at 3:41:53 PM UTC+2, Shawn Milochik wrote: > > > http://www.nikola-breznjak.com/blog/go/go-logger-kubernetes-stackdriver-format-compatibility/ > > We evaluated Apex and other loggers, and had been using logrus, but

Re: [go-nuts] Re: [Request] Official golang debugger

2017-11-07 Thread Sotirios Mantziaris
7 November 2017 22:29:29 UTC+11, Sotirios Mantziaris wrote: >> >> Apart from the time it would take to make changes to a tool in the >> toolchain i could come up with a reason for that: >> >> If a new feature gets added to go that would affect the debugger it wo

Re: [go-nuts] Re: [Request] Official golang debugger

2017-11-07 Thread Sotirios Mantziaris
eak compatibil in favor of stability. If we'd have a 3 months > release cycle then this might be a different story. > > However it's ultimately not up to me to decide but I believe that the more > things we have outside of the toolchain / standard library, the better. > > On Tue, 7 Nov 2

Re: [go-nuts] Re: [Request] Official golang debugger

2017-11-07 Thread Sotirios Mantziaris
not part of the toolchain. > > On Tue, 7 Nov 2017, 08:38 Sotirios Mantziaris, <smantzia...@gmail.com> > wrote: > >> would it not make sense them to keep dep out of the std toolchain to >> adapt faster to changes? >> >> On Tuesday, November 7, 2017 at 9:31:01 A

Re: [go-nuts] Re: [Request] Official golang debugger

2017-11-07 Thread Sotirios Mantziaris
ion of Go. > > A project living outside the standard library has little going against it > other than you have to compile it yourself. > > On Tuesday, 7 November 2017 18:28:09 UTC+11, Sotirios Mantziaris wrote: >> >> I do not know if the times you mentioned are indeed

Re: [go-nuts] Re: [Request] Official golang debugger

2017-11-06 Thread Sotirios Mantziaris
If I have a problem with delve today, I can post an > issue, fix it and get the next version of delve az quick as a few hours. If > it would be in the toolchain it could take up to six months to get it > released. > > On Tue, 7 Nov 2017, 07:04 Sotirios Mantziaris, <smant...@gma

[go-nuts] Re: [Request] Official golang debugger

2017-11-06 Thread Sotirios Mantziaris
Yes i know that, but i wonder if it is time to fully integrate delve in the go toolchain and ship it with every release like dep, which exists in another repository, but will be fullly integrated into the toolchain and the releases in some future version. On Tuesday, November 7, 2017 at

[go-nuts] [Request] Official golang debugger

2017-11-05 Thread Sotirios Mantziaris
Hi, with the lack of a official debugger, i am using delve. It is very nice and get the work done mostly, needs little or a lot of polishing. Is there any plan to provide a official debugger which will be distributed with the releases? Maybe delve could make it as the official one? Do not get

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-13 Thread Sotirios Mantziaris
follow the procedure of installing go in linux. set the following in .bashrc of your home directory at the end: export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:$GOPATH/bin worked for me just fine! On Wednesday, October 11, 2017 at 8:04:28 AM UTC+3, Pat Farrell wrote: > > I've installed

[go-nuts] Re: go get exits command line in windos

2017-10-01 Thread Sotirios Mantziaris
i think i figured it out: git is in the latest version 2.14.2 i downgraded git to 2.14.1.windows.1 and voila all things work again. On Sunday, October 1, 2017 at 3:39:26 PM UTC+3, Sotirios Mantziaris wrote: > > the log is the following: > > cd . > git clone https://github.com/man

[go-nuts] Re: go get exits command line in windos

2017-10-01 Thread Sotirios Mantziaris
\goprojects\src\github.com\mantzas\adaptlog git submodule update --init --recursive the repo gets cloned BTW On Sunday, October 1, 2017 at 3:33:33 PM UTC+3, Dave Cheney wrote: > > try go get -x > > On Sunday, 1 October 2017 23:33:04 UTC+11, Sotirios Mantziaris wrote: >> >>

[go-nuts] Re: go get exits command line in windos

2017-10-01 Thread Sotirios Mantziaris
<https://lh3.googleusercontent.com/-pF5voOGOZEU/WdDgtWj1RwI/BU0/heTuNpdorRM2pRBbVeOwLqgoJS-jQsPHwCLcBGAs/s1600/go_get_crash.gif> On Sunday, October 1, 2017 at 3:33:04 PM UTC+3, Sotirios Mantziaris wrote: > > git is available on my path > windows defender (av) is disab

[go-nuts] Re: go get exits command line in windos

2017-10-01 Thread Sotirios Mantziaris
git is available on my path windows defender (av) is disabled check out the attached gif. this was a fresh windows 10 install all component (go, git) have been installed with chocolatey. BTW: mingw works fine. can i enable some logs of go get to see what is happening? On Sunday, October 1, 2017

[go-nuts] go get exits command line in windos

2017-10-01 Thread Sotirios Mantziaris
Hi, after a re-installation of windows 10 where go get was working fine it does not work now. Every go command works fine except for go get which terminates the command line. Any ideas? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-22 Thread Sotirios Mantziaris
Hi, i am a happy long time user of windows. i am developing go the last two years and can do almost the same things as in Linux. Visual Studio Code with the go plugin is fantastic with debugging support using delve. If you want to compile for Linux you can do it from windows with "GOOS=linux

[go-nuts] Hosting go code in Visual Studio Team Services

2017-09-03 Thread Sotirios Mantziaris
Hi, has someone successfully used visual studio team services in a go project with support of the go tooling (go get, glide-dep etc)? thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Sotirios Mantziaris
i have already build such an abstraction myself (https://github.com/mantzas/adaptlog). the issue is not what i use but what all the packages out there use that i import. checkout the link mentioned by Dave Cheney On Monday, February 13, 2017 at 4:18:58 PM UTC+2, Tamás Gulácsi wrote: > > Use an

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Sotirios Mantziaris
nice, i'll take a look On Monday, February 13, 2017 at 10:00:15 AM UTC+2, Dave Cheney wrote: > > There is an active discussion thread over on the development list -> > https://groups.google.com/forum/#!topic/golang-dev/F3l9Iz1JX4g -- You received this message because you are subscribed to the

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-12 Thread Sotirios Mantziaris
let's assume you use a package that logs with std "log" package and my app uses something else let's say logrus. What would the logging result be? Would it not be inconsistent? On Monday, February 13, 2017 at 9:47:46 AM UTC+2, Jan Mercl wrote: > > On Mon, Feb 13, 2017 at

[go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-12 Thread Sotirios Mantziaris
Hi, i was wondering if the std lib should implement a logging abstraction so that every lib developer can abstract away logging and let the final lib user provide the implementation it needs. The reason for this is that like everybody else i use a lot of open source and many of them use std

[go-nuts] private repository .git and import paths

2016-12-15 Thread Sotirios Mantziaris
Hi, my problem is a follows. The repo lives in the following git repo http://some/app.git when i go get the repo the folder structure mimics the URL so i end up with a local folder app.git. As a result go install generates a binary named app.git instead of plain app. All imports look like

[go-nuts] Re: .net core vs go

2016-11-16 Thread Sotirios Mantziaris
I am currently moving one of my applications to .net core. Currently i use Redis for caching, PostgreSQL and Nginx. All run in Linux except my Rest Service which runs in Windows. After the move to asp.net core i will host the application in Linux, probably docker. Could you point me to the one

[go-nuts] Re: .net core vs go

2016-11-16 Thread Sotirios Mantziaris
ck. > > > On Wed, Nov 16, 2016 at 11:00 PM, Sotirios Mantziaris < > smantzia...@gmail.com> wrote: > > I do not agree with the above. Let me explain: > >- First of all asp.net core and it's new web server kestrel should be >used behind nginx or similar.

[go-nuts] Re: .net core vs go

2016-11-16 Thread Sotirios Mantziaris
I do not agree with the above. Let me explain: - First of all asp.net core and it's new web server kestrel should be used behind nginx or similar. Hiding it behind IIS is slow because of IIS and not because of kestrel. Check out the new https://www.techempower.com/benchmarks...

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Sotirios Mantziaris
-09, o godz. 02:06:01 > Sotirios Mantziaris <smant...@gmail.com > napisał(a): > > Excuse me for a bit of 'ad personam' tone, it is not meant to be mean. > > > And i was comparing the concurrency framework > You did not though. > > > with all the bells and

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Sotirios Mantziaris
You are adding the hash calculation to the mix which skew the results, but the end result is the same. On Sun, Oct 9, 2016, 13:05 Jan Mercl <0xj...@gmail.com> wrote: > > On Sun, Oct 9, 2016 at 11:47 AM Sokolov Yura > wrote: > > > .Net still faster and uses less memory.

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Sotirios Mantziaris
I am waiting for the final implementation to check them out. Looks promising. On Sun, Oct 9, 2016, 12:15 Jan Mercl <0xj...@gmail.com> wrote: > On Sun, Oct 9, 2016 at 11:06 AM Sotirios Mantziaris <smantzia...@gmail.com> > wrote: > > > From what i understand gorout

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Sotirios Mantziaris
e: 100 Task 961 done! 100 in 00:00:01.1604266 Still much faster than go! On Sunday, October 9, 2016 at 10:53:54 AM UTC+3, ohir wrote: > > Dnia 2016-10-08, o godz. 23:55:08 > Sotirios Mantziaris <smant...@gmail.com > napisał(a): > > > Please review my code for a

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Sotirios Mantziaris
, October 8, 2016 at 10:33:24 AM UTC+3, Jan Mercl wrote: > > On Wed, May 18, 2016 at 4:06 PM Sotirios Mantziaris <smant...@gmail.com > > wrote: > > > The claim that .Net is not heavily concurrent is not true either. > > A Go program executing 100k goroutines need

Re: [go-nuts] Re: .net core vs go

2016-10-08 Thread Sotirios Mantziaris
- Golang: https://github.com/avelino/awesome-go and >https://github.com/golang/go/wiki/Projects >- .NET Core: https://github.com/thangchung/awesome-dotnet-core > > > > > On Wednesday, 18 May 2016 16:06:30 UTC+2, Sotirios Mantziaris wrote: >> >> Dear Ti