word

package module
v0.0.0-...-518a5e2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Unlicense Imports: 1 Imported by: 1

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(s string) int
Example
fmt.Println(Count(quote.SunAlso))
Output:

1349

func UseCount

func UseCount(s string) map[string]int

no need to write an example for this one writing a test for this one is a bonus challenge; harder

Example
newmap := UseCount(quote.SunAlso)
fmt.Println(newmap["one"])
Output:

8

Types

This section is empty.

Jump to

Keyboard shortcuts

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