Git Product home page Git Product logo

go-payment's Issues

go payment cannot run in windows env

saat jalankan go run atau menjalankan executable go payment untuk windows tidak dapat berjalan dengan error

message : "error call ke mt"

2023/07/13 14:09:57 http: panic serving 127.0.0.1:58616: time: missing Location in call to Time.In goroutine 42 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1854 +0xbf panic({0x121dce0, 0x1434d00}) /usr/local/go/src/runtime/panic.go:890 +0x263 time.Time.In(...) /usr/local/go/src/time/time.go:1146 github.com/imrenagi/go-payment/gateway/midtrans/snap.(*builder).setExpiration(0xc0000ca1f0, 0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/builder.go:122 +0x2d1 github.com/imrenagi/go-payment/gateway/midtrans/snap.newBuilder(0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/builder.go:36 +0x2f1 github.com/imrenagi/go-payment/gateway/midtrans/snap.NewBCAVA(0xc00062c600?) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/bca.go:10 +0x1d github.com/imrenagi/go-payment/gateway/midtrans.NewSnapFromInvoice(0x143c5c0?) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/facade.go:18 +0x99 github.com/imrenagi/go-payment/manage.midtransCharger.Create({0xc000638f40?}, {0x143e3d8?, 0xc00040a2a0?}, 0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/manage/charger.go:33 +0x3a5 github.com/imrenagi/go-payment/invoice.(*Invoice).CreateChargeRequest(0xc0000a23c0, {0x143e3d8?, 0xc00040a2a0?}, {0x143a8d8, 0xc0000ca1e8}) /home/rie_zel/jenkins/src/62-goldfish/invoice/invoice.go:197 +0x46 github.com/imrenagi/go-payment/manage.(*Manager).GenerateInvoice(0xc0000f4090, {0x143e3d8, 0xc00040a2a0}, 0xc000152000) /home/rie_zel/jenkins/src/62-goldfish/manage/manager.go:230 +0x11cf github.com/imrenagi/go-payment/server.Server.CreateInvoiceHandler.func1({0x143dd00, 0xc000628000}, 0xc000498300) /home/rie_zel/jenkins/src/62-goldfish/server/server.go:87 +0x114 net/http.HandlerFunc.ServeHTTP(0xc000498200?, {0x143dd00?, 0xc000628000?}, 0x26ae93a0301?) /usr/local/go/src/net/http/server.go:2122 +0x2f github.com/gorilla/mux.(*Router).ServeHTTP(0xc00010c300, {0x143dd00, 0xc000628000}, 0xc000498100) /home/rie_zel/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf github.com/rs/cors.(*Cors).Handler.func1({0x143dd00, 0xc000628000}, 0xc000498100) /home/rie_zel/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd net/http.HandlerFunc.ServeHTTP(0x0?, {0x143dd00?, 0xc000628000?}, 0x10aa494?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0x143bd78?}, {0x143dd00, 0xc000628000}, 0xc000498100) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc0000f4360, {0x143e3d8, 0xc000328420}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.