Skip to content

Commit 7d43139

Browse files
committed
refactor: rename SiteConfig to Site for consistency in configuration structure
1 parent 5163ae4 commit 7d43139

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
package config
22

33
type Config struct {
4-
CN SiteConfig
5-
EN SiteConfig
4+
CN Site
5+
EN Site
66
Level LevelMap
77
Language []Language
88
Naming NamingMap
99
QuestionDataQL func(titleSlug string) GraphQLRequest
1010
}
1111

1212
var DefaultConfig = Config{
13-
CN: SiteConfig{
13+
CN: Site{
1414
Domain: "https://leetcode-cn.com",
1515
},
16-
EN: SiteConfig{
16+
EN: Site{
1717
Domain: "https://leetcode.com",
1818
},
1919
Level: LevelMap{

config/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package config
22

3-
type SiteConfig struct {
3+
type Site struct {
44
Domain string
55
}
66

0 commit comments

Comments
 (0)