Skip to content

Commit

Permalink
fix: change directory structure to idiomatic go directory structure (#…
Browse files Browse the repository at this point in the history
…333)

* fix: restructured directory structure

* fix: minor name changes and updated README.md in linkedlist package

* fix: cleanup of commented out code

* fix: trying to fix alert caused by the password generator in 'other' directory

* fix: golintci errors

* fix: removed the montecarlopi algorithm which was implemented in a non testable way and was commented out

* fix: restructured search math and strings subpackage

* fix: removed commented out files

Co-authored-by: Andrii Siriak <[email protected]>
  • Loading branch information
tjgurwara99 and siriak authored Sep 7, 2021
1 parent 5ac0bd5 commit 59b98b8
Show file tree
Hide file tree
Showing 94 changed files with 822 additions and 1,526 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package diffie_hellman_key_exchange implements Deffie Hellman Key Exchange Algorithm
// Package diffiehellman implements Deffie Hellman Key Exchange Algorithm
// for more information watch : https://www.youtube.com/watch?v=NmM9HA2MQGI
package diffie_hellman_key_exchange
package diffiehellman

const (
generator = 3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package diffie_hellman_key_exchange
package diffiehellman

import (
"crypto/rand"
Expand Down
4 changes: 2 additions & 2 deletions ciphers/xor/xor.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package xor_cipher is an encryption algorithm that operates the exclusive disjunction(XOR)
// Package xor is an encryption algorithm that operates the exclusive disjunction(XOR)
// ref: https://en.wikipedia.org/wiki/XOR_cipher
package xor_cipher
package xor

// Encrypt encrypts with Xor encryption after converting each character to byte
// The returned value might not be readable because there is no guarantee
Expand Down
2 changes: 1 addition & 1 deletion ciphers/xor/xor_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xor_cipher
package xor

import (
"fmt"
Expand Down
File renamed without changes.
File renamed without changes.
37 changes: 0 additions & 37 deletions data_structures/binary_tree/binarysearchtree.go

This file was deleted.

38 changes: 0 additions & 38 deletions data_structures/binary_tree/binarytree.go

This file was deleted.

168 changes: 0 additions & 168 deletions data_structures/linkedlist/doubly_linkedlist/doublylinkedlist.go

This file was deleted.

104 changes: 0 additions & 104 deletions data_structures/linkedlist/singly_linkedlist/singly_linkedlist2.go

This file was deleted.

12 changes: 0 additions & 12 deletions datastructures/linkedlist/cyclicallylinkedlist/Readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dynamic_programming
package dynamic

// func main() {
// myArrayOfK := [4]int{5, 6, 7, 8}
Expand Down
Loading

0 comments on commit 59b98b8

Please sign in to comment.