This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| DO $$ | |
| DECLARE | |
| r RECORD; | |
| BEGIN | |
| -- Disable all triggers temporarily | |
| SET session_replication_role = 'replica'; | |
| FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = 'public') | |
| LOOP | |
| EXECUTE 'TRUNCATE TABLE ' || quote_ident(r.tablename) || ' CASCADE'; |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'rails/commands/server' | |
| require 'rack' | |
| require 'webrick' | |
| require 'webrick/https' | |
| module Rails | |
| class Server < ::Rack::Server | |
| def default_options |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project: