10 lines
158 B
Go
10 lines
158 B
Go
|
package dictionary
|
||
|
|
||
|
func Search(dictionary map[string]string, word string) string {
|
||
|
result, ok := dictionary[word]
|
||
|
if !ok {
|
||
|
return ""
|
||
|
}
|
||
|
return result
|
||
|
}
|