Comparing these libraries
- github.com/google/uuid
 - github.com/lucsky/cuid
 - github.com/matoous/go-nanoid
 
| 1122334455667788A | |
| AABBCCDDEEFFGGHH1 | 
| package library | |
| import ( | |
| "bytes" | |
| "image" | |
| "image/jpeg" | |
| "io" | |
| "github.com/disintegration/imaging" | |
| ) | 
| (() => { | |
| // initialize app | |
| function init() { | |
| _firebaseInit() | |
| _firebaseAuthInit() | |
| } | |
| function _(el) { | |
| return document.getElementById(el); | 
| package dynamodb | |
| import ( | |
| "fmt" | |
| "testing" | |
| "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" | |
| ) | |
| func BenchmarkToSliceMap_old(b *testing.B) { | 
| package example | |
| import ( | |
| "context" | |
| ) | |
| // Executor is example process. | |
| // This might be, downloading data via http / reading data from local big file / waiting data from client etc... | |
| type Executor interface { | |
| Exec() (data interface{}, err error) // this might take a long time. | 
| (wip) |