Re: [go-nuts] Go Documentation

2018-12-19 Thread Francisco Dalla Rosa Soares
Hi Kazuya, I'm not sure what you mean by "learn how to write go documentation". * Do you want guidelines for contributing to the official documentation? * Do want a guide for how to write documentation for your own packages? I guess a lot of the experienced people here can give you tips, but I'd

Re: [go-nuts] "All types implement the empty interface"

2019-01-22 Thread Francisco Dalla Rosa Soares
First of all let's not confuse Go's Interfaces with Java's class inheritance. Read again the definition from the link you sent: "An interface type specifies a method set called its interface. A variable of interface type can store a value of any type with a method set that is any superset of the

Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-23 Thread Francisco Dalla Rosa Soares
Are you compiling both files together? a.go package main var Number int - ---b.go package main import "fmt" func main() { Number = 1 fmt.Println(Number) } - go build a.go b.go On Thu, Jan 24, 2019 at 3:16 PM Michael Banzon wrote: > Can you provide the out

Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-23 Thread Francisco Dalla Rosa Soares
Kazuya, That makes no sense. The main package is the point of entry to an executable. This is where things happen. You create packages that are able to do things and you use them in the main package to some purpose. It's going against to the reason why packages are there. What you're asking is

Re: [go-nuts] Re: Type inference

2019-02-04 Thread Francisco Dalla Rosa Soares
Kazuya, I've been following or questions for a while and the common pattern I see is: You make it feel like we're doing homework for you. Right now you're just throwing a bunch of questions at the group and waiting for an answer. For example, this question could have been something like: "I was

Re: [go-nuts] Re: important

2017-10-09 Thread Francisco Dalla Rosa Soares
Actually I have the email here from three days ago, so it might have been marked as spam at some inboxes 2017/10/10 2:02 "Ian Lance Taylor" : > On Mon, Oct 9, 2017 at 9:54 AM, jimmy frasche > wrote: > > > > I didn't get that email either. > > > > On Mon, Oct 9, 2017 at 9:51 AM, Jan Mercl <0xj...

Re: [go-nuts] sound level from sample of a wav file

2021-01-03 Thread Francisco Dalla Rosa Soares
Hi there If I got it right, all you wanna do is calculate the decibels of an audio file and trigger an an alert in case it goes over a certain threshold. I found this great answer on Stack overflow, really recommend the whole read but I'll add here the TL;DR, however I do recommend the full read