Some of the book titles include metadata — a real bugbear of mine. For example, The Ashes of London (James Marwood & Cat Lovett, Book 1) or Faithful Place (Dublin Murder Squad, Book 3). In each case the words in brackets are not part of the title and I’d like to be able to omit them. Is there a function in Hugo or Go that will tell me the position of a particular character in a string — in this case “(“? Then I could use substr to include only the characters before that position.
Thanks, I’m grateful for the help.