Re: [go-nuts] why math.Pow gives different results depending on exp type

2024-04-20 Thread Dominik Honnef
Also, Staticcheck catches this: $ curl -Os https://go.dev/play/p/oIKGb_uyLb3.go $ staticcheck oIKGb_uyLb3.go oIKGb_uyLb3.go:9:38: the integer division '1 / 13' results in zero (SA4025) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr

Re: [go-nuts] google code style is the same as gofmt in go codes?

2022-09-13 Thread Dominik Honnef
gofmt's output does not depend on the displayed width of a tab. Indentation uses tabs, alignment within a line uses spaces, and there is no alignment directly following indentation. Note that go/printer allows for configurations other than the one used by go/format / gofmt. It allows indenting wit

Re: [go-nuts] Go += Package Versioning

2018-02-20 Thread Dominik Honnef
Hi, I'd like your input on two concern I have, one as a tool developer and one with regard to reproducible builds. With go and go get, it is expected that code will not compile until all dependencies have been explicitly downloaded. Hence, it is acceptable for tools such as staticcheck to also fa

[go-nuts] multiple commands in one ssh session

2017-05-18 Thread Dominik Link
uot; + err.Error())} session.Close() //create session 2 and go into if mode session, err = client.NewSession()if err != nil { //Error will be EOF panic("Failed to create session: " + err.Error())}if err := session.Run("int e3/2"); err != nil { panic("Failed to run:

[go-nuts] go/pointer: query element of tuple with no corresponding *ssa.Extract in the program

2017-02-27 Thread dominik
Let's say I have the following function: func main(): 0:entry P:0 S:0 t0 = *os.Stdout*os.File t1 = make io.Writer <- *os.File (t0) io.Writer t2 = io.WriteString

[go-nuts] [ANN] staticcheck, gosimple and other tools have moved!

2017-01-24 Thread dominik
file causing a build failure, instructing users to use the new location. I am sorry for the inconvenience this causes. However, developing all tools in a single repository will have benefits in the long run and is worth the disruption. Cheers, Dominik -- You received this message because you are

[go-nuts] Looking for a maintainer for honnef.co/go/augeas

2016-12-10 Thread Dominik Honnef
Hi, I'm looking for a maintainer for honnef.co/go/augeas, a set of cgo bindings for Augeas[1]. It's a relatively small library, but it hasn't been keeping up with Augeas development for the past couple of months and might be missing newer APIs. The maintainer would be responsible for all the usua

[go-nuts] Re: Record audio on Windows

2016-09-26 Thread Dominik Link
I solved it by using ffmpeg: inputDeviceName := "Microphone (Realtek High Definition Audio)" outputFile := "recording.mp3" cmd := exec.Command("C:/Dev/ffmpeg/bin/ffmpeg.exe", "-f","dshow", "-i","audio=" + inputDeviceName, outputFile) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr cmd.Stdin = os.

[go-nuts] Re: Record audio on Windows

2016-09-25 Thread Dominik Link
w", "-i","audio=" + inputDeviceName, outputFile) //cmd := exec.Command("C:/Dev/ffmpeg/bin/ffmpeg.exe") cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr cmd.Stdin = os.Stdin err := cmd.Start() if err != nil { println(err.Error()) } Am Mittwoch, 21. September 2016 14:

[go-nuts] Record audio on Windows

2016-09-21 Thread Dominik Link
lportaudio collect2.exe: error: ld returned 1 exit status " Does anyone know a simple way to record audio output using go on Windows 10? I don't want to tinker lots of hours to finally surrender anymore. Regards, Dominik -- You received this message because you are subscribed to the Go