exporting/

directory
v0.0.0-...-13c456b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: Apache-2.0

README

Encapsulation

In Object oriented programming, we are used to public, private, protected type of access mechanism. Go is different. Everything in Go is about package.

Package is a self-contained unit of code. Every folder in our source tree is a self-contained user code. We will get deeper into that in package oriented design section. For now, if we are thinking about a package being that self-containing code, firewall that separates code and having language supported for it then we can think of encapsulation being associated with the package itself.

The idea is: anything that is named in a given package can be exported or accessible through other packages or unexported or not accessible through other packages.

Directories

Path Synopsis
counters
Package counters provides alert counter support.
Package counters provides alert counter support.
counters
Package counters provides alert counter support.
Package counters provides alert counter support.
users
Package users provides support for user management.
Package users provides support for user management.
users
Package users provides support for user management.
Package users provides support for user management.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL