/go-challenges

This repo will contain the solutions using Golang for some coding challenges

Primary LanguageGo

Golang Challenges

Build Status

This repo will contain the solutions using Golang for challenges found on:

  • Books
  • Hacker Rank
  • Codility
  • CodeFights
  • Others

Challenges

Others (Challenges proposed by Friends or Solved on hackatons)

Recursively reverse a string

Given a string, reverse the characters and return.

Appendix

Run the test for all the challenges

go test -v ./...

Run tests with coverage

go test -cover

Output the coverage result to a file

go test -coverprofile=coverage.out

View the test results

Console go tool cover -func=coverage.out

HTML go tool cover -html=coverage.out