File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ type (
68
68
// }
69
69
)
70
70
71
- func New (apiKey string , options Options ) * Cube {
71
+ func New (apiKey string ) * Cube {
72
+ return NewWithOptions (apiKey , Options {})
73
+ }
74
+
75
+ func NewWithOptions (apiKey string , options Options ) * Cube {
72
76
c := & Cube {
73
77
startTime : time .Now ().Unix (),
74
78
client : resty .New ().
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func Cube(apiKey string) echo.MiddlewareFunc {
13
13
}
14
14
15
15
func CubeWithOptions (apiKey string , options cube.Options ) echo.MiddlewareFunc {
16
- c := cube .New (apiKey , options )
16
+ c := cube .NewWithOptions (apiKey , options )
17
17
18
18
return func (next echo.HandlerFunc ) echo.HandlerFunc {
19
19
return func (ctx echo.Context ) (err error ) {
You can’t perform that action at this time.
0 commit comments