diff options
author | Teddy Wing | 2017-03-12 17:43:20 +0100 |
---|---|---|
committer | Teddy Wing | 2017-03-12 17:49:36 +0100 |
commit | 89f766854443a6f7ae20c330547083fd0e075ba9 (patch) | |
tree | da28ed20680fbff2de7c6adb43906ba96d1e2e1c /timetask/time_entry.go | |
parent | d9ca7b7d412f34f0d1f93a04c7c566f041b99524 (diff) | |
download | timetasker-89f766854443a6f7ae20c330547083fd0e075ba9.tar.bz2 |
fields.go: Add methods that allow us to extract objects by name
We want to be able to get Client, Project, etc. objects given their
name. These functions will look through the fields or objects containing
a list of the thing looked for and return if if its name matches the
search string.
Originally had the idea to generalise the body of the function, but had
trouble making the types generic. Still on the table for later if we
want to deduplicate the code. For now I'm leaving in the repetition
because it works and I don't care with this project.
Diffstat (limited to 'timetask/time_entry.go')
0 files changed, 0 insertions, 0 deletions