greet

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package greet implements greeting functions.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fhelloln

func Fhelloln(w io.Writer, user string)

Fhelloln formats and prints a greeting string to given writer. See fmt.Fprintln.

Example
package main

import (
	"os"

	"codeberg.org/kurth4cker/go-sample/greet"
)

func main() {
	greet.Fhelloln(os.Stdout, "kurth4cker")
}
Output:

hello kurth4cker

func Helloln

func Helloln(user string)

Helloln writes formatted greeting and a newline to os.Stdout.

Example
package main

import (
	"codeberg.org/kurth4cker/go-sample/greet"
)

func main() {
	greet.Helloln("Gopher")
}
Output:

hello Gopher

func Shello

func Shello(user string) string

Return a formatted greeting string to given user. User may be any string including empty string.

Example
package main

import (
	"fmt"

	"codeberg.org/kurth4cker/go-sample/greet"
)

func main() {
	greeting := greet.Shello("world")
	fmt.Println(greeting)
}
Output:

hello world

Types

This section is empty.

Jump to

Keyboard shortcuts

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