Skip to content

Instantly share code, notes, and snippets.

> 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 │
└──────────────────────────────────────────────────────────────────────────────┘
@IAD
IAD / fsm.go
Created January 16, 2019 17:28
package fsm
import (
"context"
"reflect"
"runtime"
"strings"
)
// StateFunc function that should return next state func or nil
@IAD
IAD / nats.go
Created January 18, 2018 01:49
package nats
import (
"errors"
"fmt"
"reflect"
"strings"
"time"
"github.com/nats-io/go-nats"
package nats
import (
"errors"
"fmt"
"reflect"
"strings"
"time"
"github.com/nats-io/go-nats"
#!/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