Setting up go package
This commit is contained in:
parent
268dd63423
commit
c0b8d461d7
3 changed files with 243 additions and 1 deletions
213
Gopkg.lock
generated
213
Gopkg.lock
generated
|
@ -17,9 +17,220 @@
|
|||
revision = "af459469e09da76b00b310365998396b33ea4aa9"
|
||||
version = "v0.6.2"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:65b32933b6beb993aaaf81c2c71730261713b693269984f4b60e79d3646676c6"
|
||||
name = "gitea.com/tango/authz"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "be858f7101e9eb2f4c5d36c8b130655e857d91e8"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:3c8395a65c7184b5626f128708aee14b9e88b92f02eb79950568d3dc36accd93"
|
||||
name = "gitea.com/tango/renders"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "78fc56203eb41ab091e71d9af679a3e9a322f117"
|
||||
version = "v0.5"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:0300a879eec0e0e0c00ab2ff58909efa6ca38355e2a7a868923b02979a3f944a"
|
||||
name = "gitea.com/tango/session"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "b9d4fc3602c73462d53bc20695bf95e7c92d6011"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:5d3e23515e7916c152cc665eda0f7eaf6fdf8fdfe7c3dbac97049bcbd649b33f"
|
||||
name = "github.com/Knetic/govaluate"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "d216395917cc49052c7c7094cf57f09657ca08a8"
|
||||
version = "v3.0.0"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:d3d1f7bfcaaa5cc56c36d010937e28d1c6c38810b95086cd445eb433b83cbf75"
|
||||
name = "github.com/casbin/casbin"
|
||||
packages = [
|
||||
".",
|
||||
"config",
|
||||
"effect",
|
||||
"errors",
|
||||
"log",
|
||||
"model",
|
||||
"persist",
|
||||
"persist/file-adapter",
|
||||
"rbac",
|
||||
"rbac/default-role-manager",
|
||||
"util",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "aaed1b7a7eac65d37ec4e15e308429fdf0bd6a9e"
|
||||
version = "v1.9.1"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec"
|
||||
name = "github.com/davecgh/go-spew"
|
||||
packages = ["spew"]
|
||||
pruneopts = "UT"
|
||||
revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73"
|
||||
version = "v1.1.1"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:521c50a5aac4e4088885dd3ac6274b529dbe94d4b382e8ed19c8177ca9795728"
|
||||
name = "github.com/graph-gophers/graphql-go"
|
||||
packages = [
|
||||
".",
|
||||
"errors",
|
||||
"internal/common",
|
||||
"internal/exec",
|
||||
"internal/exec/packer",
|
||||
"internal/exec/resolvable",
|
||||
"internal/exec/selected",
|
||||
"internal/query",
|
||||
"internal/schema",
|
||||
"internal/validation",
|
||||
"introspection",
|
||||
"log",
|
||||
"trace",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "f33e813622776db7efec756a9e951bef40932197"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:7fbb40f65374cb64a7bf3f1f74e2cb4c4437d93bc3d8921cf7e3d7ad2ab20989"
|
||||
name = "github.com/graphql-go/graphql"
|
||||
packages = [
|
||||
".",
|
||||
"gqlerrors",
|
||||
"language/ast",
|
||||
"language/kinds",
|
||||
"language/lexer",
|
||||
"language/location",
|
||||
"language/parser",
|
||||
"language/printer",
|
||||
"language/source",
|
||||
"language/typeInfo",
|
||||
"language/visitor",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "2b0b7340d2285b861482047fbf5de0488e021bea"
|
||||
version = "v0.7.8"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:7902c7a299724335a6f73514193afb51c82f09893a467f65f679807a9bb2a884"
|
||||
name = "github.com/jmcvetta/neoism"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "c37ec30845b63d9f168f55e837c787e08a15e9a6"
|
||||
version = "v1.3.1"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:c32290d024281ffba4a3dd53d65e2e48103262b4757fc3fcb3d3470852753e7f"
|
||||
name = "github.com/jmcvetta/randutil"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "2bb1b664bcff821e02b2a0644cd29c7e824d54f8"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:ca955a9cd5b50b0f43d2cc3aeb35c951473eeca41b34eb67507f1dbcc0542394"
|
||||
name = "github.com/kr/pretty"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:15b5cc79aad436d47019f814fde81a10221c740dc8ddf769221a65097fb6c2e9"
|
||||
name = "github.com/kr/text"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:03a75c806856cd3401454e3412e59ed287afc73ad8e29b46f3aa52d153d5531f"
|
||||
name = "github.com/lunny/tango"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "c0e198702c7b02478b27b592dff8dd873f4b2c08"
|
||||
version = "v0.5.6"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:11e62d6050198055e6cd87ed57e5d8c669e84f839c16e16f192374d913d1a70d"
|
||||
name = "github.com/opentracing/opentracing-go"
|
||||
packages = [
|
||||
".",
|
||||
"ext",
|
||||
"log",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "659c90643e714681897ec2521c60567dd21da733"
|
||||
version = "v1.1.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:8ad686b49b509bf03549281c04b5fe11f609e9b12bf34a0690acad8cecc94f15"
|
||||
name = "github.com/oxtoacart/bpool"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "03653db5a59cd88b481403d312d7c324b56af377"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe"
|
||||
name = "github.com/pmezard/go-difflib"
|
||||
packages = ["difflib"]
|
||||
pruneopts = "UT"
|
||||
revision = "792786c7400a136282c1664665ae0a8db921c6c2"
|
||||
version = "v1.0.0"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:8548c309c65a85933a625be5e7d52b6ac927ca30c56869fae58123b8a77a75e1"
|
||||
name = "github.com/stretchr/testify"
|
||||
packages = ["assert"]
|
||||
pruneopts = "UT"
|
||||
revision = "221dbe5ed46703ee255b1da0dec05086f5035f62"
|
||||
version = "v1.4.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:c0a0c858983735b2fc5123d0a567f19406914b5b62eb11c8479b2c27a105508f"
|
||||
name = "github.com/tango-contrib/session"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "3115f8ddf72d99cfc9defc5f1ee8222d36d7d637"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:c321f7496d1bbb2340c4e0a789d9d8d9b755be8cf51b865f5da042aae0f4986c"
|
||||
name = "gopkg.in/jmcvetta/napping.v3"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "4c7b4b235c63152afa9a1c6384e708e0fbfd77ca"
|
||||
version = "v3.2.0"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:b75b3deb2bce8bc079e16bb2aecfe01eb80098f5650f9e93e5643ca8b7b73737"
|
||||
name = "gopkg.in/yaml.v2"
|
||||
packages = ["."]
|
||||
pruneopts = "UT"
|
||||
revision = "1f64d6156d11335c3f22d9330b0ad14fc1e789ce"
|
||||
version = "v2.2.7"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
input-imports = ["gitea.com/lunny/tango"]
|
||||
input-imports = [
|
||||
"gitea.com/lunny/tango",
|
||||
"gitea.com/tango/authz",
|
||||
"gitea.com/tango/renders",
|
||||
"gitea.com/tango/session",
|
||||
"github.com/casbin/casbin",
|
||||
"github.com/graph-gophers/graphql-go",
|
||||
"github.com/graphql-go/graphql",
|
||||
"github.com/jmcvetta/neoism",
|
||||
]
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
|
24
Gopkg.toml
24
Gopkg.toml
|
@ -32,3 +32,27 @@
|
|||
[[constraint]]
|
||||
name = "gitea.com/lunny/tango"
|
||||
version = "0.6.2"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/jmcvetta/neoism"
|
||||
version = "1.3.1"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/graphql-go/graphql"
|
||||
version = "0.7.8"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "gitea.com/tango/authz"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "gitea.com/tango/session"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/casbin/casbin"
|
||||
version = "1.9.1"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/graph-gophers/graphql-go"
|
||||
|
|
|
@ -3,6 +3,13 @@ package main
|
|||
import (
|
||||
"errors"
|
||||
"gitea.com/lunny/tango"
|
||||
"github.com/jmcvetta/neoism"
|
||||
"gitea.com/tango/renders"
|
||||
"gitea.com/tango/authz"
|
||||
"gitea.com/tango/session"
|
||||
"github.com/casbin/casbin"
|
||||
"github.com/graphql-go/graphql"
|
||||
"github.com/graph-gophers/graphql-go"
|
||||
)
|
||||
|
||||
type Action struct {
|
||||
|
|
Loading…
Reference in a new issue