-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor [Golang] [Package] Exporter (Reduce Gocyclo) (#26)
- [+] refactor(session.go): reorganize ConvertSessionsToCSV function for better readability and maintainability - [+] feat(session.go): add getCSVHeaders function to retrieve headers based on formatOption - [+] feat(session.go): add getWriteFunction function to retrieve write function based on formatOption - [+] feat(session.go): add writeInlineFormat function to write session data in inline format - [+] feat(session.go): add writePerLineFormat function to write session data with one message per line - [+] feat(session.go): add writeJSONFormat function to write session data with messages as a JSON string - [+] feat(session.go): add checkContextCancellation function to check if the context is cancelled
- Loading branch information
1 parent
2d78d87
commit b096f88
Showing
1 changed file
with
94 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters