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
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
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
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:
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
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
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
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.
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:
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
10 matches
Mail list logo