demo.go-admin.com icon indicating copy to clipboard operation
demo.go-admin.com copied to clipboard

Main.go file call to function with wrong parameters

Open camilovietnam opened this issue 3 years ago • 0 comments

Brief description

In file main.go, line 93 we are calling the following method:

eng.AddConfig(cfg)

But the parameter needs to be of type *config.Config, so the correct call should be:

eng.AddConfig(&cfg)

Link

https://github.com/GoAdminGroup/demo.go-admin.com/blob/631b3c7e3765f8966234a0b0d611bdc729da9b3f/main.go#L93

camilovietnam avatar Nov 02 '21 09:11 camilovietnam