All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| <?php | |
| // uuidv7 see https://www.rfc-editor.org/rfc/rfc9562#name-uuid-version-7 | |
| function uuidv7() { | |
| // current timestamp in ms | |
| $timestamp = intval(microtime(true) * 1000); | |
| return sprintf( | |
| '%02x%02x%02x%02x-%02x%02x-%04x-%04x-%012x', | |
| // first 48 bits are timestamp based |
| // Copyright 2011 The Go Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| // Package csv reads and writes comma-separated values (CSV) files. | |
| // There are many kinds of CSV files; this package supports the format | |
| // described in RFC 4180. | |
| // | |
| // A csv file contains zero or more records of one or more fields per record. | |
| // Each record is separated by the newline character. The final record may |
| package main | |
| import ( | |
| "fmt" | |
| "unsafe" | |
| ) | |
| func main(){ | |
| // integer for convert | |
| num := int64(1354321354812) |
| package crypto | |
| import ( | |
| "crypto/sha256" | |
| ) | |
| // NewSHA256 ... | |
| func NewSHA256(data []byte) []byte { | |
| hash := sha256.Sum256(data) | |
| return hash[:] |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
| cd ~ | |
| apt-get install libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y | |
| #https://github.com/wkhtmltopdf/wkhtmltopdf/releases | |
| #replace arch | |
| wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb | |
| dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb | |
| apt --fix-broken install |
| #!/bin/bash | |
| go test -coverprofile=coverage.out | |
| go tool cover -html=coverage.out |
| /* | |
| * Genarate rsa keys. | |
| */ | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" |