8000 gotraining/topics/web/posts at master · dbalduini/gotraining · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

posts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Web - Posts and Forms

Learn the basics of making POST calls and working with multipart form data.

Notes

  • The standard library has much of what you need to build services and apps.
  • The net/http package provides the building blocks.
  • There are other great packages in the Go ecosystem to help.

Links

https://golang.org/pkg/net/http/
https://golang.org/doc/articles/wiki/

Code Review

Basic POST: Code | Test
Simple Form: Code | Test
Structured Form Parsing: Code | Test
Multipart Forms: Code | Test

Exercises

Exercise 1

Take the multipart writer example and add support for a new form field that would specify the name of the folder to use for the uploaded image. If it does not exist use the current directory as the default. Then update the test to validate the code change.


All material is licensed under the Apache License Version 2.0, January 2004.

0