Phase 0.2: Remove GTK/glib dependencies and replace C idioms #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The existing Go code is a direct translation from C and retains many GLib/GTK idioms that don't belong in a Go web app. Every module needs to be cleansed.
Replacements
GArray[]T(Go slices)gint/gfloat/gbooleanint/float64/boolgpointerany/interface{}gchar *stringg_array_index()g_ptr_array_*[]*Tg_string_*strings.Builderg_sprintf/sprintffmt.Sprintfg_free/g_strdupGTK_WIDGET\* / GtkWidgetApproach
Refactor in-place as we touch each module for the web conversion. Don't attempt to do all files at once — start with the files needed for Phase 1 core engine.
Acceptance Criteria
#include,GArray,gint,gpointer, or GTK references remain in Go source files