shawchandankumar / TODO-LIST-SK

0 stars 0 forks source link

instead of using DBConfig function, why not use init? #1

Open abdulrehman-sk opened 1 year ago

abdulrehman-sk commented 1 year ago

https://github.com/shawchandankumar/TODO-LIST-SK/blob/70b8f9a087b923624e3a0f483cfaf06f4dbafd18/backend/configuration/databaseConfig.go#L13

shawchandankumar commented 1 year ago

init would be a private function then, won't be able to call from other files Instead I can make it Init, is it ok?