===
package keeri
type keeri struct {
a int
}
func NewKeeri() *keeri {
return &keeri{}
}
===
Now I import the above go library in a go program as below:
===
package main
import "github.com/psankar/keeri/keeri"
func main() {
keeri.NewKeeri()
}
===
Here I am not capturing the return value of the function NewKeeri but I do
not get any compilation error. Should I be not getting a compilation error
unless I assign the return value of NewKeeri to _ through an assignment
operation ?
Why does it not give a compilation error ?
Sankar
http://psankar.blogspot.in
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.