mirror repo of https://github.com/littlequartz/clink. a socket programming assignment for Sistem Terdistribusi
Server: - Generate 6-char IDs from lowercase hex alphabet "abcdef0123456789" - Default username now uses the ID as-is (no extra ToLower) - Use strings.CutPrefix for robust “/name ” command parsing Client: - Add colorizeLine to apply ANSI colors based on 6-hex-digit ID - Colorize chat lines: "<name> (<id>): <msg>" - Colorize [join]/[leave] notices - Colorize [rename] events - Colorize Welcome banner - Apply colorizeLine to incoming netMsg before appending Notes: - ID regex patterns accept 6 hex digits (case-insensitive), rendered in lowercase - Keeps non-matching lines unchanged |
||
|---|---|---|
| go.mod | ||
| go.sum | ||
| main.go | ||
| server.go | ||