()
| 38 | ) |
| 39 | |
| 40 | func Init() { |
| 41 | if validator.PlatformFactories == nil { |
| 42 | validator.PlatformFactories = make(map[types.Platform]func(*validator.Base) validator.IValidator) |
| 43 | } |
| 44 | validator.PlatformFactories[types.Platforms.Github] = func(base *validator.Base) validator.IValidator { |
| 45 | gh := Github{base} |
| 46 | return &gh |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func (gh *Github) GeneratePostPayload() (post map[string]string) { |
| 51 | gh.Identity = strings.ToLower(gh.Identity) |
no outgoing calls