Ejemplo n.º 1
0
// this function removes data from the Netblock object
// before saving (fields which can never be set by
// the user...uuid, created, modified...)
func filterNetblock(n *model.Netblock) {
	_newnetblock := new(model.Netblock)
	n.Created = _newnetblock.Created
	n.Modified = _newnetblock.Modified
	n.Uuid = _newnetblock.Uuid
}