-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
39 lines (36 loc) · 1.04 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Archivo: models.go
package mutator
type MutationType struct {
Type MutationAction
Letters bool
Numbers bool
Special bool
Any bool
CharSet string
CharProbabilities map[rune]float64
MutationProb float64
Length int
Dictionary string
Wordslist []string
}
type Config struct {
InitialText string
MutationProb float64
MutationTypes []MutationType
CharSet string
CharProbabilities map[rune]float64
Prefix string // Campo para el prefijo
Suffix string // Campo para el sufijo
StaticText string // Campo para el texto estático
}
type Mutator struct {
InitialText string
Results []string
GlobalMutationProb float64
MutationTypes []MutationType
GlobalCharSet string
GlobalCharProb map[rune]float64
Prefix string // Campo para el prefijo
Suffix string // Campo para el sufijo
StaticText string // Campo para el texto estático
}