TheAlgorithms / Go

Algorithms and Data Structures implemented in Go for beginners, following best practices.
https://the-algorithms.com/language/go
MIT License
16.26k stars 2.63k forks source link

Improve package organizations #36

Closed eduardogr closed 3 years ago

eduardogr commented 6 years ago

There's a lot of main packages in this project

sorts/selection_sort.go:1:package main sorts/Heapsort.go:1:package main .... .... other/PasswordGenerator.go:5:package main other/PrimeNumbers.go:1:package main

We can improve this package organization to let each package have its place

localleon commented 4 years ago

+1

This would also fix all the failed golangci-lint test. Currently they fail because multiple people use the package main.

vdnhi commented 4 years ago

It's a good idea. I'm trying to fix this (both package and filename convention). I'm starting with sorts. You're welcome to help with other parts.

eduardogr commented 3 years ago

How is this going? Do you need help with this?

vedantmamgain commented 3 years ago

@eduardogr That would be great if you can improve the package organization.

tjgurwara99 commented 3 years ago

I believe this issue has been resolved with the PR #266. Now it only remains for us to add tests for each function so that everything works as the implementor expects it to.