Re: [go-nuts] The Generics Proposal has been accepted!

2021-02-17 Thread Mohamed Yousif
I really don't know why you have been constantly negative. It seems like you genuinely care about the language and what it brought to you, and worried of what might the future bring to us. That's understandable. But it doesn't give you the right to insult the community this way. On Wed, 17 Feb

Re: [go-nuts] Any general VPN(pptp, l2tp, openVPN, IPSec VPN) server implementation in go?

2020-11-17 Thread Mohamed Yousif
How about wireguard[1]? [1]: https://git.zx2c4.com/wireguard-go/about/ On Tue, 17 Nov 2020, 12:34 pm Nathan, wrote: > Hi, I want to use a general VPN protocols to comminucate with my server, > we cannot change the client to use other VPN protocols. > But I did a lot of research, it seems there

Re: [go-nuts] rin: return if nil syntactic sugar

2020-08-31 Thread Mohamed Yousif
Dear, On Mon, Aug 31, 2020, 4:16 AM Zakaria bin Haris wrote: > Hi, gophers! > > Idk if this has been proposed or discussed before. > > Given the last error handling abbreviation proposal is rejected. How about > some simple syntactic sugar like this: > > *rin* Something() > I love the

Re: [go-nuts] First git commit for Go was in 1972? 勞

2020-08-05 Thread Mohamed Yousif
I did small google search and here are the findings >Brian Kernighan actually wrote the first "hello, world" program as part of the documentation for the BCPL programming language. BCPL was used while C was being developed at Bell Labs a few years before the publication of Kernighan and Ritchie's

Re: [go-nuts] Fuchsia Programming Language Policy

2020-02-25 Thread Mohamed Yousif
It seems they are betting high on Dart/flutter and their front end is already written with flutter. The assessment seems to be pretty much the same as for Dart. Dart won with the ui side, while go was competing with C. On Tue, 25 Feb 2020 at 7:22 PM, Jon Conradt wrote: > The Fuchsia

Re: [go-nuts] Re: [golang-dev] go.dev is live!

2019-11-14 Thread Mohamed Yousif
Is there any plans on open sourcing go.dev (the webservices behind it). It is a little bit odd, but I'll personally learn a lot from it. Oh, and congrats on the great work. I really liked it so much and would definitely use it a lot over godoc. Regards, M On Thu, Nov 14, 2019 at 12:00 PM Dan

Re: [go-nuts] strict type assignability to prevent arbitrary values

2019-11-07 Thread Mohamed Yousif
Hi Speter, Can you elaborate more on this point please? > there is no memory or runtime overhead due to encapsulating the string within a struct. On Thu, 7 Nov 2019 at 3:15 PM, speter wrote: > Hi bsr, > > I'd suggest to use a struct type with a single string field. It will > prevent

Re: [go-nuts] Interface method return other interface?

2019-10-09 Thread Mohamed Yousif
I always find accept interface and return struct to be very useful. It makes the code more cleaner. On Wed, 9 Oct 2019 at 9:40 AM, Martin Palma wrote: > I'm wondering If it is ok (or good Go code) if an interface method returns > an other interface? Here an example: > > type Querier interface

Re: [go-nuts] Have Any One Experience With Print CSS Modules Using in Golang

2019-03-21 Thread Mohamed Yousif
I’m not quite sure but I think you can do this easier using JS. On Thu, 21 Mar 2019 at 5:24 PM, wrote: > I try to make a pdf from my HTML and CSS. In CSS file there have > some Paged Media Models. > https://github.com/SebastiaanKlippert/go-wkhtmltopdf/ I use this library > to generate my pdf

Re: [go-nuts] commercial (?) password manager written in go (like lastpass, dashlane, etc.)

2019-02-26 Thread Mohamed Yousif
1password? They are sponsoring many of gopher conferences. On Wed, 27 Feb 2019 at 3:11 AM, Pat Farrell wrote: > I've been reading the group for a long time, and have vague memories that > someone from a company responded to a technical question posted with a nice > answer and as an aside,

Re: [go-nuts] Visual Studio Code oddity with Go

2019-02-20 Thread Mohamed Yousif
Visual studio code has a very active GitHub repository, you can definitely get a better support there. On Wed, 20 Feb 2019 at 4:14 PM, Rich wrote: > I tried googling this but I not been able to find a solution, hopefully I > can ask this here and someone else knows how to fix this. I use

Re: [go-nuts] GORM, saving values

2018-11-29 Thread Mohamed Yousif
Beside exporting issue, you need to commit these models into your database. I use .Create(). On Thu, 29 Nov 2018 at 5:47 PM, Robert Engels wrote: > If gorm is like json marshalling the fields need to be exported, that is > capitalized. > > Just a thought. > > On Nov 29, 2018, at 12:02 AM,