(n int)
| 506 | } |
| 507 | |
| 508 | func randomID(n int) string { |
| 509 | const alphanum = "ABCDEFGHJKLMNOPQRSTUVWXYZ0123456789" |
| 510 | |
| 511 | var bytes = make([]byte, n) |
| 512 | rand.Read(bytes) |
| 513 | for i, b := range bytes { |
| 514 | bytes[i] = alphanum[b%byte(len(alphanum))] |
| 515 | } |
| 516 | return string(bytes) |
| 517 | } |
| 518 | |
| 519 | func createError(errCode int) (err error) { |
| 520 | var errMsg string |
no outgoing calls
no test coverage detected