New Theme
Follow two steps:(Notice:GoAdmin version should be higher than v1.0.2)
      1.
      import the theme package
      1.
      set theme name in your config
Ex:
1
package main
2
3
import (
4
...
5
6
_ "github.com/GoAdminGroup/themes/sword"
7
8
...
9
)
10
11
func main() {
12
r := gin.Default()
13
14
gin.SetMode(gin.ReleaseMode)
15
gin.DefaultWriter = ioutil.Discard
16
17
eng := engine.Default()
18
19
cfg := config.Config{
20
...
21
22
Theme: "sword",
23
24
...
25
}
26
27
...
28
}
Copied!
Of course, if you import multi themes, you can switch it in the real-time config center.
Last modified 1yr ago
Copy link