package
0.4.5
Repository: https://github.com/russellluo/kun.git
Documentation: pkg.go.dev

# README

fileupload

This example illustrates how to handle file uploading.

Generate the code

$ go generate

Test the server

Run the server:

$ go run cmd/main.go
2021/03/07 16:00:34 transport=HTTP addr=:8080

Upload a file:

$ curl -F file=@/dir/to/sample_file.txt http://localhost:8080/upload

Check the uploaded file sample_file.txt in the current directory.

# Packages

No description provided by the author

# Functions

MakeEndpointOfUpload creates the endpoint for s.Upload.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateUploadRequest creates a validator for UploadRequest.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Service is used for uploading files.