Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Refactor [Golang] [Package] Exporter (Reduce Gocyclo) #26

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

  • [+] 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

- [+] 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
Copy link

CodeQL analysis is complete for PR #26

@H0llyW00dzZ H0llyW00dzZ merged commit b096f88 into master Dec 10, 2023
8 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the reduce_exporter branch December 10, 2023 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant