79266408

Date: 2024-12-09 20:50:36
Score: 1.5
Natty:
Report link

Sometimes it could be effective to use strings.Cut:

before, after, found := strings.Cut( "somethingtodo", "to" )

If "to" was found, you could use "something" and "do" afterwards.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas Höhenleitner