79267444

Date: 2024-12-10 08:12:31
Score: 1
Natty:
Report link

Try to define a function that encapsulates the logic and returns result:

v, err := i.Eval(`
    import "strings"
    func trim(s string) string {
        return strings.TrimSpace(s)
    }
    trim(" foo ")
`)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: astrica1