file.go 279 B

1234567891011
  1. package gofakeit
  2. // MimeType will generate a random mime file type
  3. func MimeType() string {
  4. return getRandValue([]string{"file", "mime_type"})
  5. }
  6. // Extension will generate a random file extension
  7. func Extension() string {
  8. return getRandValue([]string{"file", "extension"})
  9. }