Skip to content

Commit

Permalink
reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
philpearl committed Dec 12, 2023
1 parent 3c975db commit 7a20eda
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 675 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Phil Pearl
Copyright (c) 2019-2023 Phil Pearl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ require (
github.com/fatih/structtag v1.2.0
github.com/google/go-cmp v0.5.5
github.com/google/gofuzz v1.0.0
github.com/mailru/easyjson v0.7.0
github.com/unravelin/null v2.1.2+incompatible
google.golang.org/protobuf v1.30.0
)

require (
github.com/mailru/easyjson v0.7.0 // indirect
github.com/stretchr/testify v1.6.1 // indirect
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
)
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=
Expand All @@ -18,9 +17,6 @@ github.com/unravelin/null v2.1.2+incompatible h1:JF+JHiWWs8jDsAAwquTKddV+Rq4moaR
github.com/unravelin/null v2.1.2+incompatible/go.mod h1:b0vttVn4a95rTkkj/DT8R6UGjS0Xr+Aw/q7a00kaOM0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
128 changes: 0 additions & 128 deletions null/null_easyjson.go

This file was deleted.

20 changes: 0 additions & 20 deletions null/null_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/google/go-cmp/cmp"
fuzz "github.com/google/gofuzz"
"github.com/mailru/easyjson"
"github.com/philpearl/plenc"
"github.com/philpearl/plenc/plenccodec"
"github.com/unravelin/null"
Expand Down Expand Up @@ -295,23 +294,4 @@ func BenchmarkNull(b *testing.B) {
}
})
})

b.Run("easyjson", func(b *testing.B) {
b.ReportAllocs()
b.RunParallel(func(pb *testing.PB) {
var w benchThing
for pb.Next() {
var err error
data, err := easyjson.Marshal(&v)
if err != nil {
b.Fatal(err)
}

w = benchThing{}
if err := easyjson.Unmarshal(data, &w); err != nil {
b.Fatal(err)
}
}
})
})
}
3 changes: 0 additions & 3 deletions prototest/gen.go

This file was deleted.

156 changes: 0 additions & 156 deletions prototest/proto_test.go

This file was deleted.

Loading

0 comments on commit 7a20eda

Please sign in to comment.