mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-16 20:39:08 +08:00
e32bdc053f
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com> Co-authored-by: Tom Limoncelli <tal@whatexit.org>
11 lines
313 B
Go
11 lines
313 B
Go
package dnsgraph
|
|
|
|
func CreateDependencies(dependencyFQDNs []string, dependencyType DependencyType) []Dependency {
|
|
var dependencies []Dependency
|
|
|
|
for _, dependency := range dependencyFQDNs {
|
|
dependencies = append(dependencies, Dependency{NameFQDN: dependency, Type: dependencyType})
|
|
}
|
|
|
|
return dependencies
|
|
}
|