Handler for Host CRUDL actions (#287)
This commit is contained in:
1 parent
8dad85fef4
commit
d5678c4f80
33 files changed
+1944
-372
No files matched your search
@@ -16,7 +16,7 @@ func ExampleNewHostCatalog() {
|
||||
|
||||
func ExampleNewHost() {
|
||||
catalogPublicId := "sthc_1234"
|
||||
host, _ := static.NewHost(catalogPublicId, "127.0.0.1")
|
||||
host, _ := static.NewHost(catalogPublicId, static.WithAddress("127.0.0.1"))
|
||||
fmt.Println(host.Address)
|
||||
// Output:
|
||||
// 127.0.0.1
|
||||
|
||||
Reference in new issue
Block a user