sample

package module
v0.12.0 Latest Latest
Warning

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

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

README

go-sample

Go Go Reference

Just an example Go repository.

Usage

This is just a go11module. You can add it with go get:

go get codeberg.org/kurth4cker/go-sample@latest

Copying

Licensed under MPL-2.0. See file COPYING for details.

Documentation

Overview

Sample Go repository for trying out any module related tech

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fhelloln added in v0.5.0

func Fhelloln(w io.Writer, user string)

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

Example
sample.Fhelloln(os.Stdout, "kurth4cker")
Output:

hello kurth4cker

func Helloln added in v0.8.0

func Helloln(user string)

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

Example
sample.Helloln("Gopher")
Output:

hello Gopher

func Shello added in v0.6.0

func Shello(user string) string

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

Example
greeting := sample.Shello("world")
fmt.Println(greeting)
Output:

hello world

Types

This section is empty.

Directories

Path Synopsis
Package list implements Singly Linked List.
Package list implements Singly Linked List.

Jump to

Keyboard shortcuts

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