More specifically, I now understand the revel framework and found a piece of code that I don’t understand: http://pastebin.com/ce5M9Mfn. Specifically, I am worried about the first two lines of the function - they have a strange syntax. The first part (the letter c) is ... call it an object, of course. The next part - apparently, some kind of package, included in the "controllers". Then comes the function that does something. But what after it? one more function?
package controllers import ( "github.com/robfig/revel" "revel/app/models" ) ...... func (c Application) Hello(myName string) revel.Result { c.Validation.MinSize(myName, 3).Message("Your name is not long enough!") c.Validation.Required(myName).Message("Your name is required!") if c.Validation.HasErrors() { c.Validation.Keep() c.FlashParams() return c.Redirect(Application.Index) } return c.Render(myName) }