<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>scope on Golang</title><link>https://golang.k5kc.com/tags/scope/</link><description>Recent content in scope 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/scope/index.xml" rel="self" type="application/rss+xml"/><item><title>Scopes in Go</title><link>https://golang.k5kc.com/2020/08/16/6.scopes/</link><pubDate>Sun, 16 Aug 2020 00:10:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/6.scopes/</guid><description>Same name cannot be declared again inside a same scope. There are following types of scopes in Go:
package: Each Go package has it&amp;rsquo;s own scope. For e.g. declared funcs are only visible to the files belonging to same package. file: Imported packages are only visible to the importing file. Each file has to import external packages on it&amp;rsquo;s own. func. block.</description></item></channel></rss>