Skip to content

guicattani/matrix-operations-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to build

  1. Simply run:
go build ./cmd/matrix-server/main.go

And a executable will be built in the working directory.

How to run

  1. Run web server:
go run ./cmd/matrix-server/main.go
  1. Send request:
curl -F 'file=@/path/matrix.csv' "localhost:8080/echo"

Valid endpoints are:

/echo
/invert
/flatten
/sum
/multiply

Any other path will yield an error.

As per specification, only square matrices with integers are permitted.

Test

  1. To run tests simply run:
go test ./pkg/... -cover

Example csv files are present in the folder ./test_data.


About

Efficient Matrix Operations in an API format using Golang

Resources

Stars

Watchers

Forks

Languages