<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>variables on Golang</title><link>https://golang.k5kc.com/tags/variables/</link><description>Recent content in variables on Golang</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Aug 2020 00:10:00 +0530</lastBuildDate><atom:link href="https://golang.k5kc.com/tags/variables/index.xml" rel="self" type="application/rss+xml"/><item><title>Exporting name</title><link>https://golang.k5kc.com/2020/08/16/7.exported-names/</link><pubDate>Sun, 16 Aug 2020 00:10:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/7.exported-names/</guid><description>To export a name in Go, just make it&amp;rsquo;s first letter an uppercase letter. From within a package namespace you can refer to private functions and variables (starting with lower case) but from outside the package, you can only access the things exported from that package. Think public and private key word in Java.
//exported func MyPublicFunc(){ } //private func myPrivateFunc(){ }</description></item></channel></rss>