Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ func main() {
DB, _ := gorm.Open("sqlite3", "demo.db")
DB.AutoMigrate(&User{}, &Product{})

// Initalize
// Initialize
Admin := admin.New(&admin.AdminConfig{DB: DB})

// Create resources from GORM-backend model
Admin.AddResource(&User{})
Admin.AddResource(&Product{})

// Initalize an HTTP request multiplexer
// Initialize an HTTP request multiplexer
mux := http.NewServeMux()

// Mount admin to the mux
Expand Down