Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was 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

About

Reflect helpers for https://github.com/krolaw/dhcp4

Resources

Readme

License

BSD-3-Clause license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages