Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

ZiroKyl/reflectDHCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reflect helpers for krolaw/dhcp4

This package adds simple way to init DHCP4 Options from JSON object. For example, read DHCP Options from JSON formatted config file.

Born from this Pull Request.

Usage

import "encoding/json"
import "github.com/krolaw/dhcp4"
import "github.com/ZiroKyl/reflectDHCP"
...
var opt = dhcp4.Options{};
json.Unmarshal(strJSON, (*reflectDHCP.Options)(&opt));

For more examples see test file

Releases

No releases published

Packages

No packages published

Languages