aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorTeddy Wing2017-03-12 17:43:20 +0100
committerTeddy Wing2017-03-12 17:49:36 +0100
commit89f766854443a6f7ae20c330547083fd0e075ba9 (patch)
treeda28ed20680fbff2de7c6adb43906ba96d1e2e1c /main.go
parentd9ca7b7d412f34f0d1f93a04c7c566f041b99524 (diff)
downloadtimetasker-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 'main.go')
0 files changed, 0 insertions, 0 deletions