greet

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func SayHi

func SayHi(names ...string) string

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.

Jump to

Keyboard shortcuts

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