在 perl 中,我可以将 $hashref 推入 @array 并将此数据用于下一个 foreach 和可能的 encode_json (HTTP POST)。
我不知道如何在 golang 中重新创建相同的登录名?
$VAR1 = [
{
'address' => 'test.com',
'id' => 101,
'hostgroups' => [
zero
'one',
'or many'
],
'host_name' => 'test.com',
'alias' => 'test.com',
'template' => 'generic',
'file_id' => 'etc/config'
},
{
'address' => 'test2.com',
'id' => 102,
'hostgroups' => [
zero
'one',
'or many'
],
'host_name' => 'test2.com',
'alias' => 'test2.com',
'template' => 'generic',
'file_id' => 'etc/config'
},
(..)
隔江千里
胡子哥哥
相关分类