- Initialize project
npm init -y - Create esm module
./src/esm/my-lib.jsfunction addNumber(value, value2) { return value + value2; } export { addNumber };
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins: | |
| - serverless-pseudo-parameters | |
| provider: | |
| name: aws | |
| runtime: python3.7 | |
| stage: ${opt:stage, 'dev'} | |
| environment: | |
| SQLALCHEMY_DATABASE_URI: # DB DSN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pool | |
| import ( | |
| "fmt" | |
| "sync" | |
| "runtime" | |
| ) | |
| // GoroutinePool pools Goroutines to avoid performance penalties associated with spawning many | |
| // short-lived goroutines that each have to individually grow their stack. |