Upgrade to Go 1.19 (#2347)
This commit is contained in:
1 parent
07a4082aa1
commit
aef9073fa6
77 files changed
+334
-294
No files matched your search
+11
-11
@@ -10,25 +10,25 @@
|
||||
// referenced. A host set can only reference hosts from the host catalog
|
||||
// that owns it. Host addresses must be unique within a host catalog.
|
||||
//
|
||||
// Repository
|
||||
// # Repository
|
||||
//
|
||||
// A repository provides methods for creating, updating, retrieving, and
|
||||
// deleting host catalogs, host sets, and hosts. A new repository should be
|
||||
// created for each transaction. For example:
|
||||
//
|
||||
// var wrapper wrapping.Wrapper
|
||||
// ... init wrapper...
|
||||
// var wrapper wrapping.Wrapper
|
||||
// ... init wrapper...
|
||||
//
|
||||
// // db implements both the reader and writer interfaces.
|
||||
// db, _ := db.Open(db.Postgres, url)
|
||||
// // db implements both the reader and writer interfaces.
|
||||
// db, _ := db.Open(db.Postgres, url)
|
||||
//
|
||||
// var repo *static.Repository
|
||||
// var repo *static.Repository
|
||||
//
|
||||
// repo, _ = static.NewRepository(db, db, wrapper)
|
||||
// catalog, _ := repo.LookupCatalog(ctx, catalogId)
|
||||
// repo, _ = static.NewRepository(db, db, wrapper)
|
||||
// catalog, _ := repo.LookupCatalog(ctx, catalogId)
|
||||
//
|
||||
// catalog.Name = "new name"
|
||||
// catalog.Name = "new name"
|
||||
//
|
||||
// repo, _ = static.NewRepository(db, db, wrapper)
|
||||
// catalog, _ := repo.UpdateCatalog(ctx, catalog, []string{"Name"})
|
||||
// repo, _ = static.NewRepository(db, db, wrapper)
|
||||
// catalog, _ := repo.UpdateCatalog(ctx, catalog, []string{"Name"})
|
||||
package static
|
||||
Reference in new issue
Block a user