Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SayHi ¶
SayHi greets given names.
Example ¶
This is example of single argument usage.
package main
import (
"fmt"
"github.com/vbyazilim/maoyyk2023-golang-101-kursu/src/14/test-code-coverage/greet"
)
func main() {
fmt.Println(greet.SayHi("vigo"))
}
Output: hi vigo!
Example (WithArgs) ¶
This is example of with many arguments usage.
package main
import (
"fmt"
"github.com/vbyazilim/maoyyk2023-golang-101-kursu/src/14/test-code-coverage/greet"
)
func main() {
fmt.Println(greet.SayHi("vigo", "turbo", "max"))
}
Output: hi vigo! hi turbo! hi max!
Example (WithNoArg) ¶
This is example of no argument usage.
package main
import (
"fmt"
"github.com/vbyazilim/maoyyk2023-golang-101-kursu/src/14/test-code-coverage/greet"
)
func main() {
fmt.Println(greet.SayHi())
}
Output: hi everybody!
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.