O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Processing the contact form submission

Upon successful completion of the contact form, we call the ProcessContactForm function in the submission package. If the workflow to fill out the contact form were like playing baseball, the call to the ProcessContactForm function can be considered reaching home plate and scoring a run. As we shall see later in the section, Contact form Rest API endpoint, this function will also be called by the contact form's Rest API endpoint. Now that we have established the significance of this function, let's go ahead and examine it:

func ProcessContactForm(env *common.Env, form *forms.ContactForm) { log.Println("Successfully reached process content form function, indicating that the contact form was filled out ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required