1.4.5.2
This commit is contained in:
12
EdgeDNS/internal/models/record_key.go
Normal file
12
EdgeDNS/internal/models/record_key.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package models
|
||||
|
||||
import "strings"
|
||||
|
||||
type RecordKey string
|
||||
|
||||
func NewRecordKey(recordName string, recordType string) RecordKey {
|
||||
// 记录名全部使用小写
|
||||
return RecordKey(strings.ToLower(recordName) + "|" + recordType)
|
||||
}
|
||||
Reference in New Issue
Block a user