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:
| import Foundation | |
| // Source: https://stackoverflow.com/a/39425959 | |
| extension Character { | |
| /// A simple emoji is one scalar and presented to the user as an Emoji | |
| var isSimpleEmoji: Bool { | |
| guard let firstScalar = unicodeScalars.first else { return false } | |
| return firstScalar.properties.isEmoji && firstScalar.value > 0x238C | |
| } |
| import SwiftUI | |
| fileprivate extension DateFormatter { | |
| static var month: DateFormatter { | |
| let formatter = DateFormatter() | |
| formatter.dateFormat = "MMMM" | |
| return formatter | |
| } | |
| static var monthAndYear: DateFormatter { |
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: