raul
a0b0332cd4
Update comments and dependencies
2024-04-23 07:58:54 +02:00
raul
c4302aea1a
Organize files and implement clean port selection
2024-04-22 08:21:59 +02:00
raul
3bfe744b8d
Add Cobra and start codebase refactoring
2024-04-22 08:05:34 +02:00
raul
6a75e7cd41
Add chat-tests
...
Planning to rewrite mini-chat from the ground up
2024-04-21 19:45:32 +02:00
raul
e16bc31a11
Add extra handlers
2024-04-20 09:29:30 +02:00
raul
1f23019846
Add http-server exercise
2024-04-19 07:51:21 +02:00
raul
1a36774ee3
Add script library exercise
2024-04-18 12:51:00 +02:00
raul
829a84fabb
Improve star-shapes-mk2
2024-04-18 10:34:39 +02:00
raul
b8fe0a216b
Cleaner interface exercise implementations
2024-04-18 09:10:30 +02:00
raul
725071ded5
Add star-shapes-mk2 exercise
...
Now improved using methods and interfaces!
2024-04-17 10:07:09 +02:00
raul
fb05399eca
Add json + interfaces exercise
2024-04-16 08:54:21 +02:00
raul
f240e98da4
Add interfaces exercise
2024-04-16 08:14:52 +02:00
raul
baa3b77552
Improved methods exercise with custom types
2024-04-15 11:49:18 +02:00
raul
84149fc850
Configure selecting buttons with enter and tab
2024-04-15 10:01:49 +02:00
raul
313d22fd64
Add select-buttons exercise
2024-04-15 09:00:48 +02:00
raul
7c73e03d60
Practicing methods
2024-04-15 08:30:10 +02:00
raul
3921e103a5
Add "Connected users" view
2024-04-12 08:37:48 +02:00
raul
ae2477dc77
Clean up tcell exercise
...
Tcell is a tad bit too low level of an API for me, I'll just stick with
Gocui until I need lower-level control
2024-04-12 08:21:45 +02:00
raul
ac3ded6e9a
Add error handling to WASD inputs
...
Can't believe I forgot about that
2024-04-11 15:19:04 +02:00
raul
3eacb27315
Added wasd-game exercise
...
I am most definitely getting the hang of the Gocui library, this is fun
2024-04-11 08:41:58 +02:00
raul
7d33ba18fc
Clean up interface and simulate CLI chat client
2024-04-11 07:59:56 +02:00
raul
23a65fcb01
Modifying a view from another one
2024-04-10 16:02:38 +02:00
raul
d93be2b37b
Editor properly empties text after hitting enter
...
Realized I could use v.SetCursor and v.Clear to easily control the view
2024-04-10 09:01:55 +02:00
raul
06b23f99c8
Starting cleaner TUI exercise
2024-04-10 08:38:44 +02:00
raul
226ff03093
Create tiny counter within quit view
2024-04-09 20:16:30 +02:00
raul
01e9e7e2db
Finally figured out how to read view contents
...
I think I'm finally getting the hang of Gocui, it's pretty interesting
how it separates each view into a different section for the layout
function, also went ahead and separated the keybindings into their own
function, and yes I'm stealing from the _examples folder of the official
project, it's really helpful okay?
2024-04-08 08:23:18 +02:00
raul
8acdc82081
Figured out how to input data within views
2024-04-07 09:58:34 +02:00
raul
faa95c2248
Added quit button widget to exercise
2024-04-06 10:14:33 +02:00
raul
99c053115e
Practice using coordinates for adding textboxes
2024-04-05 12:11:12 +02:00
raul
5edb80e54a
Add gocui library practice exercise
2024-04-04 09:39:37 +02:00
raul
d287ad47a9
Learn event handling and proper rendering
...
I'm tired of building crappy and ugly interactive interfaces by hand, I
learned Cobra to build CLI tools so I might as well learn tcell to
create TUI tools.
2024-04-03 09:02:33 +02:00
raul
9c39b1c462
Added custom port flag to server command
2024-03-28 15:03:58 +01:00
raul
4e30581a5e
Implementing client for connecting to the server
...
Also went ahead and fixed the server improperly writing to
connections.log, newlines be damned
2024-03-27 13:48:12 +01:00
raul
59efb49e3f
Figuring out flags in Cobra
2024-03-26 18:55:52 +01:00
raul
285de706f7
Added get-time exercise
2024-03-25 17:24:03 +01:00
raul
89fce7631b
Added logging capabilities to server
2024-03-24 10:56:34 +01:00
raul
61bf3a0276
Re-adding CPU checker and cleaning CLI interface
2024-03-23 13:05:00 +01:00
raul
46ec23f513
Finally beginning to understand Cobra
...
So all I had to do to add extra subcommands was use cobra-cli add,
great, learning how to use this will definitely be useful in the long
run if I want to build actual CLI applications
2024-03-23 12:33:49 +01:00
raul
f0df294bbe
Practicing with Cobra
2024-03-23 12:06:31 +01:00
raul
4ba20dfc76
Add tiny server to query-cpu exercise
2024-03-22 15:38:28 +01:00
raul
18bd5f98a3
Added query-cpu exercise
2024-03-21 22:03:27 +01:00
raul
2a0ce3f89d
Minor tweaks
2024-03-20 20:59:48 +01:00
raul
6711bc5de5
Added methods exercise
2024-03-19 08:21:08 +01:00
raul
f8eacdbc1c
Added tcell-practice exercise
2024-03-18 09:13:29 +01:00
raul
6428837551
Add tour-of-go folder and README.md
2024-03-18 08:19:47 +01:00
raul
290d1be8f4
Added tcp-movie exercise
...
Need to practice sockets more, I have many ideas on what to do with them
2024-03-11 08:29:41 +01:00
raul
7693f81e0b
Added http-get exercise
2024-03-10 09:29:55 +01:00
raul
08040ef9c9
Added ability to use custom ports
2024-03-10 09:21:02 +01:00
raul
a41033f150
Handling multiple connections using goroutines
2024-03-10 09:07:08 +01:00
raul
a4a5594096
Added sockets exercise
2024-03-09 19:35:26 +01:00