Discover Packages
github.com/postmannen/go-learning
embedding
01-embedding-types-to-inherit-methods
command
Version:
v0.0.0-...-9882766
Opens a new window with list of versions in this module.
Published: Nov 26, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Test out embedding an existing type, and inherit all the methods that the
original type have. This is done by closing the underlying type into struct{T}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.