GoLang Tutorial
GoLang is super fast server side language for web framework and Restful API. It's must faster than other traditional language and supports concurrency.
Cannot refer to unexported name when importing a package
You get this error cannot refer to unexported name in GoLang, if you try to import an identifer(variable, function) from another Go file or folder.
To solve it, you must name your identifers(variables,functions) in uppercase letter. like below
package main var Name ="dbestech"
You see in the above package the variable I have declared using an uppercase letter.
Now I can use this package and use the Name variable.
package main import( "fmt" ) func main(){ fmt.Println("Hello ", Name) }