utils

package
v0.0.0-...-60d17e8 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToDictionary

func AddToDictionary(dictionary map[string]bool, word string)

func AddToFile

func AddToFile(file *os.File, word string) (int, error)

func Contains

func Contains(arr []string, elem string) bool

Contains = returns true if the string is present in the array, false otherwise

func GetDictionaryFile

func GetDictionaryFile() *os.File

func IsWordInDictionary

func IsWordInDictionary(dictionary map[string]bool, word string) bool

func ReadDictionaryFile

func ReadDictionaryFile() map[string]bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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