This file contains 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
#!/usr/bin/env bash | |
# This tool generate swagger.json and SDK using swagger-codegen | |
# Could be run from local dev workplace | |
#1. Generate swagger doc | |
#workaround for https://github.com/go-swagger/go-swagger/issues/992 | |
USER_ID=$UID | |
docker build -t goswagger sdk-conf | |
docker run --rm -it -v $HOME:$HOME -v $GOPATH:/go -w $(pwd) goswagger generate spec -o ./swagger.json |
This file contains 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 nats | |
import ( | |
"errors" | |
"fmt" | |
"reflect" | |
"strings" | |
"time" | |
"github.com/nats-io/go-nats" |
This file contains 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 nats | |
import ( | |
"errors" | |
"fmt" | |
"reflect" | |
"strings" | |
"time" | |
"github.com/nats-io/go-nats" |
This file contains 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 fsm | |
import ( | |
"context" | |
"reflect" | |
"runtime" | |
"strings" | |
) | |
// StateFunc function that should return next state func or nil |
This file contains 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
> npm audit | |
=== npm audit security report === | |
┌──────────────────────────────────────────────────────────────────────────────┐ | |
│ Manual Review │ | |
│ Some vulnerabilities require your attention to resolve │ | |
│ │ | |
│ Visit https://go.npm.me/audit-guide for additional guidance │ | |
└──────────────────────────────────────────────────────────────────────────────┘ |