Fix snake_case naming violations to use camelCase#15
Merged
Conversation
0c027c0 to
a93de94
Compare
Changes: - common.go: data_type → dataType, data_len → dataLen, received_checksum → receivedChecksum, calc_checksum → calcChecksum - gotoMemory.go: memory_num → memoryNum - jiecang.go: memory_name → memoryName - listDevices.go: device_address → deviceAddr - Update .gitignore to exclude bin/ and .claude/ directories This aligns the codebase with Go naming conventions which require camelCase for local variables instead of snake_case. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
a93de94 to
b2cbb76
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes all snake_case naming violations in the codebase, converting them to idiomatic Go camelCase naming.
Changes
pkg/jiecang/common.go:
data_type→dataTypedata_len→dataLenreceived_checksum→receivedChecksumcalc_checksum→calcChecksumcmd/gotoMemory.go:
memory_num→memoryNumpkg/jiecang/jiecang.go:
memory_name→memoryNamecmd/listDevices.go:
device_address→deviceAddrWhy This Matters
Go style guidelines require camelCase for local variable names, not snake_case. This improves:
Test Results
Breaking Changes
None - these are internal variable names that don't affect the public API.
🤖 Generated with Claude Code