Re: [go-nuts] New advanced, CGo-free SQLite package

2021-05-01 Thread Amit Saha
On Sun, May 2, 2021 at 12:55 AM Ross Light wrote: > > The original is still there! https://github.com/crawshaw/sqlite > > The story for this package is that I used crawshaw.io/sqlite for a number of > projects, realized that I wanted some features that were unlikely to be > upstream-able -- for

Re: [go-nuts] Why fmt.Println(math.Sqrt2) gives ...0951 not ...0950?

2021-05-01 Thread peterGo
On Saturday, May 1, 2021 at 10:12:36 AM UTC-4 kziem...@gmail.com wrote: > Can you guide me to some materials about const in Go? > > Kamil > >> >> The Go Blog: Constants https://blog.golang.org/constants Peter -- You received this message because you are subscribed to the Google Groups "golang

Re: [go-nuts] Accidentally released a v1.0.0 for my package, how do I go back from there here?

2021-05-01 Thread Astha Jain
Retract is Go 1.16, will not work with Go 1.15 or under. I need to clear the module cache, is there any way to achieve that? On Saturday, May 1, 2021 at 3:27:59 AM UTC-4 Paul Jolly wrote: > Module retraction gives you a way of "undoing" the release. > > There is a "Play with Go" guide on the t

Re: [go-nuts] Why fmt.Println(math.Sqrt2) gives ...0951 not ...0950?

2021-05-01 Thread Kamil Ziemian
Thank you Brain Candler, this was probably thing that I missed: that math.Sqrt2 is converted according to the context and I didn't think what context fmt.Println gave it. sob., 1 maj 2021 o 20:20 Brian Candler napisał(a): > Remember that while a constant may have unlimited precision, when you ca

Re: [go-nuts] Why fmt.Println(math.Sqrt2) gives ...0951 not ...0950?

2021-05-01 Thread Brian Candler
Remember that while a constant may have unlimited precision, when you call fmt.Println() then it will get converted to a float64 value to be passed as an argument. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] Why fmt.Println(math.Sqrt2) gives ...0951 not ...0950?

2021-05-01 Thread 'wagner riffel' via golang-nuts
On Sat May 1, 2021 at 11:12 AM -03, Kamil Ziemian wrote: > Can you guide me to some materials about const in Go? Or maybe I should > finally read Go spec, which I avoid for a long time? > You shouldn't avoid to read the spec, it's not as complicated as others languages, and it's a great source of

Re: [go-nuts] New advanced, CGo-free SQLite package

2021-05-01 Thread Ross Light
The original is still there! The story for this package is that I used crawshaw.io/sqlite for a number of projects, realized that I wanted some features that were unlikely to be upstream-able -- for example, the switch to modernc.org/sqlite drops Windows suppor

[go-nuts] gomod is it ok to clone a remote into a local directory ?

2021-05-01 Thread clément auger
Hello, While toying in some projects i ended using go mod replace directive to point to a local directory containing a git clone of a remote, that i know will need some modifications. something like $ git clone github.com/anacrolix/dht dht $ cat go.mod module github.com/clementauger/dplay go

Re: [go-nuts] Why fmt.Println(math.Sqrt2) gives ...0951 not ...0950?

2021-05-01 Thread Kamil Ziemian
Thank you. I still need to learn more about floating point numbers, there is so many thing about them that can go wrong. At the same time, I believe this was in "A Tour of Go", I read that golang const are values with arbitrary precision. I hope that I don't mess this up. Since according to Go

[go-nuts] Go Modules cheat sheet

2021-05-01 Thread ean...@gmail.com
After somewhat regularly looking up the magic invocation to add, remove, upgrade dependencies, I decided to create a simple cheat sheet with the most important Go modules concepts. You can find it here: https://encore.dev/guide/go.mod Sharing it here in case it's useful to others. Improvements

Re: [go-nuts] Recommendations of Go front-ends for single page SaaS application

2021-05-01 Thread Jesper Louis Andersen
On Wed, Apr 28, 2021 at 12:28 AM Joseph Jones wrote: > Hi Everyone, > > I am trying to decide what front-end to use with a Go backend. It seems > natural to use a Go frontend framework as well but I have not found a lot > of them. > > A couple of haphazard thoughts: The most important one is tha

Re: [go-nuts] How string constants are propagated inside a small func

2021-05-01 Thread Jesper Louis Andersen
On Fri, Apr 30, 2021 at 7:51 PM 'Valentin Deleplace' via golang-nuts < golang-nuts@googlegroups.com> wrote: > I don't know exactly what SSA does in the compiler, but I thought it would > be capable of optimizing f and g into the exact same generated code. Am I > missing something? > Roughly, SSA

Re: [go-nuts] New advanced, CGo-free SQLite package

2021-05-01 Thread Amit Saha
Hi Ross, Thanks for sharing this. I am curious what's the difference between your fork and the original repo (which is now gone it seems)? On Fri, Apr 30, 2021 at 11:42 PM Ross Light wrote: > > I've created a new Go package for SQLite: zombiezen.com/go/sqlite > > It is a fork of crawshaw.io/sqlit

Re: [go-nuts] Accidentally released a v1.0.0 for my package, how do I go back from there here?

2021-05-01 Thread Paul Jolly
Module retraction gives you a way of "undoing" the release. There is a "Play with Go" guide on the topic: https://play-with-go.dev/retract-module-versions_go116_en/ (the guide can be read without needing to use the interactive terminal) Also the reference documentation for the retract directive:

[go-nuts] Re: Accidentally released a v1.0.0 for my package, how do I go back from there here?

2021-05-01 Thread Brian Candler
Can you give the URL of the repo? -- 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. To view this discussion on the web vis