Commit e4e388e
docs: rewrite general-patterns.md to lead with typed wrappers
Restructure the guide to reflect the project's goal of idiomatic,
strongly typed Go code:
- Lead with typed wrappers as the default (NewManager, typed methods,
data class accessors)
- Add section on named constants with "never magic numbers" guidance
- Show return type mapping (Java -> Go) with automatic conversions
- Move raw JNI to a short fallback section at the end
- Remove magic constant 512 from bluetooth.md GATT example
- Fix constant comparisons to use named constants throughout1 parent 6fa850c commit e4e388e
2 files changed
Lines changed: 263 additions & 332 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
| |||
0 commit comments