by Resotto
- Good example of Go with Clean Architecture.
- All kinds of Gophers (newbie to professional).
package main | |
import ( | |
"flag" | |
"fmt" | |
) | |
type Pricing struct { | |
Region string | |
PerRequestPrice float64 // in USD per 1 million requests |
version: '3.9' | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: secret | |
PGDATA: /data/postgres |
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
schema := ` | |
ActiveRecord::Schema.define(version: 2022_12_05_175521) do |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
"math" |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
"sort" |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
"sort" |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |