Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 561 Bytes

theme.md

File metadata and controls

42 lines (27 loc) · 561 Bytes

Use 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:

package main

import ( 
	...

	_ "github.com/GoAdminGroup/themes/sword"

    ...
)

func main() {
	r := gin.Default()

	gin.SetMode(gin.ReleaseMode)
	gin.DefaultWriter = ioutil.Discard

	eng := engine.Default()

	cfg := config.Config{
		...

		Theme:    "sword",

        ...
	}

    ...
}

Of course, if you import multi themes, you can switch it in the real-time config center.