package
0.1.12
Repository: https://github.com/everfir/go-helpers.git
Documentation: pkg.go.dev

# Functions

测试逻辑: 待补充 测试用户: 第一组: 满足条件为[1,2,3,4] users := [][]string{ {"1", "android"}, {"2", "android"}, {"3", "ios"}, {"4", "ios"}, {"5", "android"}, } 第二组: 满足条件为[12, 13,564] users := [][]string{ {"1", "android"}, {"12", "ios"}, {"13", "ios"}, {"123", "android"}, {"564", "ios"}, } // 测试配置如下,预期结果: - 第一组条件,满足条件为 // { "helper_test": { "feature_test": { "enable": true, "rule": [ { "mode": 4, // 平台分流 "targets": [ "ios" ] }, { "mode": 1, // 规则分流 "expresion": "user.account_id % 2 == 0" } ] } } } */.
MockClient 模拟客户端请求.