- Make sure Go is properly installed, including the PATH.
- Install the
protocbinary.brew install protobuf. - Install the gen library.
go get -u github.com/golang/protobuf/protoc-gen-go.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "github.com/getbread/breadkit/zeus/searcher" | |
| func TestZeus(t *testing.T) { | |
| lsr := loanSearch.LoanSearchRequest{} | |
| yy, mm, dd := time.Now().Date() | |
| midnight := time.Date(yy, mm, dd, 0, 0, 0, 0, time.Now().Location()) | |
| lsr.AddFilter(loanSearch.LoanSearch_PaidOffAt, midnight.AddDate(0, 0, -fullPaymentDelayDays), searcher.Operator_GTE, searcher.Condition_AND) | |
| lsr.AddFilter(loanSearch.LoanSearch_PaidOffAt, midnight.AddDate(0, 0, 1-fullPaymentDelayDays), searcher.Operator_LT, searcher.Condition_AND) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package payments | |
| import ( | |
| "time" | |
| "github.com/google/uuid" | |
| ) | |
| type ScheduledTransactionStatus string |