p1.save
is a function so, written like this, it doesn't do anything, which is what the compiler is "warning" you about (but with Go, what could be a warning is in fact an error and prevents compilation).
What you might want is p1.save()
, which unlike p1.save
would actually run the function.