say

package module
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 1 Imported by: 0

README

Say

This is a Go repo for experimenting with Go Module versions.

Documentation

Overview

Package say returns friendly statements

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Goodbye

func Goodbye() string

Goodbye returns the infomous Lawrence Oates quote

Example
fmt.Println(say.Goodbye())
Output:

I am just going outside and I may be some time

func Hello

func Hello(name string) string

Hello returns the "hello, {name}!" greeting. If name is the empty string, name will default to World, returning the famous hello, World! greeting.

Example
fmt.Println(say.Hello(""))
Output:

hello, World!
Example (WithName)
fmt.Println(say.Hello("Golang"))
Output:

hello, Golang!

Types

This section is empty.

Jump to

Keyboard shortcuts

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