package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: May 1, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package example_01 contains a documentation example.
type Msg struct {
Note string
}
Msg represents a message.
Receive a message from a certain origin.
package main
import (
"github.com/juanmanuel-tirado/savetheworldwithgo/11_modules/godoc/example_01"
)
func main() {
m := example_01.Msg{"Hello"}
m.Receive("John")
}
Output:
Received Hello from John
Send a message to a target destination.
package main
import (
"github.com/juanmanuel-tirado/savetheworldwithgo/11_modules/godoc/example_01"
)
func main() {
m := example_01.Msg{"Hello"}
m.Send("John")
}
Output:
Send Hello to John
Source Files
¶
Click to show internal directories.
Click to hide internal directories.