-
Notifications
You must be signed in to change notification settings - Fork 0
/
gowords.go
17 lines (14 loc) · 1.49 KB
/
gowords.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*┄─────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Copyright (C) 2023 Saleh Rahimzadeh │
│ https://github.com/saleh-rahimzadeh/go-words │
│ All rights reserved. ┊
╰─────────────────────────────────────────────────────────────────────────────────────────────┄*/
package gowords
//──────────────────────────────────────────────────────────────────────────────────────────────────
// Words the interface to specify required methods to get and find words
type Words interface {
// Get search for a name then return value if found, else return empty string
Get(string) string
// Find search for a name then return value and `true` if found, else return empty string and `false`
Find(string) (string, bool)
}