Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 449 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 449 Bytes

proverbs

Purpose

proverbs helps me explaining both modules and vanity import paths in my course Master Go.

You can use it for integrating Go proverbs into your code.

Usage

package main

import (
	"fmt"

	"appliedgo.net/proverbs"
)

func main() {
	fmt.Println("Random proverb:", proverbs.Random())
	for i := 0; i < 19; i++ {
		fmt.Printf("Proverb no %d: %s\n", i+1, proverbs.No(i))
	}
}