Go

`the_go` is an early set of Go helpers that mirror the other runtimes. Go generation is planned but not usable yet.

the_go

The library is organised as packages under utils/:

PackageContents
sqlbuilderBuildJoinQuery builds LEFT JOINs with ? placeholders.
modelModel{Table, DB, Relations, Items} with Join().
authHash (SHA-256). Login and Register are placeholders.
sessionA global map. It is not safe to share across requests.
response, file, mailHelpers. mail.Send() is a mock.

The repository has no go.mod yet, so it cannot be fetched with go get, and the DB interface has no implementation. It is a starting point for a port, not a working runtime.

What generation would produce

The dormant generator (compile-php/src/Class/golangset.php) writes:

  • go/models/<name>.go: structs with json tags;
  • go/controllers/<name>_controller.go: Gin handlers (Index, Show, Store, Update, Delete) that return placeholder JSON.

The generated code does not use the_go, and it ignores crud roles.