class
struct
func substring(strin string, start int, end int) string {
...
}
type NameOfClass struct {
...prop
}
// attached
func ( nameOfClass *NameOfClass ) FuncName(args) returnType {
nameOfClass .prop ...
}
// format, alias
// type NewType ExistingType -- I can create new type
type AlimsNewType otherpackage.NameOfClass
func (alimsNewType *AlimsNewType) myNewFunc (strIn string) string {
return alimsNewType.Prop + strIn
}
// format
func ( **attacher ) FuncName(args) returnType {
}