Re: [go-nuts] Which websites do you use to search for new projects?

2023-03-28 Thread Josh Kamau
I use https://awesome-go.com/ Assuming I understand your question ;) Regards. Josh On Tue, 28 Mar 2023 at 15:34, 'Nadiia Halabuda' via golang-nuts < golang-nuts@googlegroups.com> wrote: > *Hello!* > > *I am interested in knowing the best websites for searching projects for > Golang developers.

Re: [go-nuts] the size of the files compiled in GO

2020-04-18 Thread Josh Kamau
Because golang has a runtime that includes a garbage collector, goroutine scheduler etc On Sat, 18 Apr 2020 at 20:29, Chris Burkert wrote: > https://golang.org/doc/faq#Why_is_my_trivial_program_such_a_large_binary > > schrieb am Sa. 18. Apr. 2020 um 19:25: > >> Why does the simple Hello world p

Re: [go-nuts] Re: Why is this?

2020-04-11 Thread Josh Kamau
Thanks Brian, That makes sense. Josh On Sat, 11 Apr 2020 at 17:26, Brian Candler wrote: > Slightly extended: > https://play.golang.org/p/dVhNGS0oxKV > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and sto

[go-nuts] Why is this?

2020-04-11 Thread Josh Kamau
package main import ( "fmt" ) func main() { fmt.Println(isInputNil(nil)) //Returns true fmt.Println(isMapNil(nil)) //Returns false } func isMapNil(m map[string]interface{}) bool { return isInputNil(m) } func isInputNil(input interface{}) bool { return input == nil } https://play.golang.org/p/

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Josh Kamau
This works well for me. https://upper.io/db.v3/ On Fri, 27 Sep 2019 at 15:56, Robert Engels wrote: > The piece you are missing about ORM is the automatic change detection and > caching when using complex object graphs. This is not trivial by any means > when using raw SQL. It’s not easy using an

Re: [go-nuts] Re: I am starting Golang and I am looking for a example to Login, Logout, Signup..

2019-03-20 Thread Josh Kamau
In golang you have to mix and match various libraries. - For CSRF, I use http://www.gorillatoolkit.org/pkg/csrf - For password encryption, I use https://godoc.org/golang.org/x/crypto/bcrypt I like using golang without a comprehensive web framework because I understand all the pieces involved in m

Re: [go-nuts] What are Parse Html token methods for email templates in golang?

2017-11-10 Thread Josh Kamau
You can use 'with' to achieve what you want. Take a look at this example https://play.golang.org/p/incDGEmUJK I have to say your question is not clear and i just guessed what you want. Thanks. Josh On Wed, Nov 8, 2017 at 12:03 PM, wrote: > Hi everyone, > > I am trying to create email templa

Re: [go-nuts] Easiest way to work with database

2017-10-22 Thread Josh Kamau
Here is a very basic example. No audio, just follow the code. https://www.youtube.com/watch?v=b81phqjXzEA Josh On Sun, Oct 22, 2017 at 4:47 AM, Shawn Milochik wrote: > Assumptions: > >- You're using the html/template package: https://golang.org/ >pkg/html/template/ >- You name your

Re: [go-nuts] Re: State of the database drivers in go

2017-01-12 Thread Josh Kamau
I have an app in production using Postgres. The library has never been a problem. I have read good reviews for mgo but i have not used it personally Josh On Thu, Jan 12, 2017 at 6:39 PM, Henrik Johansson wrote: > Mgo https://labix.org/mgo seems to be very well maintained. > > tors 12 jan. 20

Re: [go-nuts] State of the database drivers in go

2017-01-12 Thread Josh Kamau
This https://github.com/lib/pq which is the postgres driver has commits in the last 15 days. Josh On Thu, Jan 12, 2017 at 11:22 AM, snmed wrote: > Dear all > > I'm planning my next project which is a data centric application with use > of at least one rdbms and one nosql database. > So far i u

Re: [go-nuts] stupid question: how much processors/ram a twitter like web app (doing just CRUD operations) need to serve 1k request/s ?

2016-11-22 Thread Josh Kamau
To answer this kind of question, i normally write a simple app, then run it on localhost, then use ab tool to test. e.g to send 100,000 requests 100 at a time, ab -n 10 -c 100 http://localhost:3000/ Then i use 'top' to see how much cpu/ram its using. On Tue, Nov 22, 2016 at 3:27 PM, Marwan

Re: [go-nuts] Re: Connect In Database

2016-09-29 Thread Josh Kamau
Let me try ;) You can use package database/sql to connect to any sql database that has a golang driver. Here is a list of some database drivers https://github.com/golang/go/wiki/SQLDrivers Here is some documentation: http://go-database-sql.org/ And here is a video https://www.youtube.com/watch?v

[go-nuts] gophercon 2016 videos

2016-08-19 Thread Josh Kamau
For those who have been waiting, like me, GopherCon 2016 videos are now on youtube. e.g https://www.youtube.com/watch?v=KINIAgRpkDA -- 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

Re: [go-nuts] Re: nodemon style tool

2016-07-26 Thread Josh Kamau
Gin works for me ;) https://github.com/codegangsta/gin On Tue, Jul 26, 2016 at 1:42 PM, KLR wrote: > > thanks Daniel, also found https://github.com/JonahBraun/wago which is > doing the job nicely > > > El lunes, 25 de julio de 2016, 19:36:18 (UTC+2), KLR escribió: >> >> Hi, is there a nodemon s

Re: [go-nuts] How to make bootstrap style reflect on golang template

2016-07-12 Thread Josh Kamau
If you inspect the browser console, are you serving the bootstrap css ?? I normally do something like this: mux.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("./assets" And then my css link will be /assets/bootstrap/css/bootstrap.min.css where 'assets' is my public