Skip to content

Removed the need for cgo compilation flag#11

Merged
febbraro merged 1 commit intodevelopfrom
feature/remove-cgo
Feb 28, 2017
Merged

Removed the need for cgo compilation flag#11
febbraro merged 1 commit intodevelopfrom
feature/remove-cgo

Conversation

@febbraro
Copy link
Member

Following up on #7 feedback

@febbraro febbraro requested review from grayside and tekante February 28, 2017 18:29
@febbraro
Copy link
Member Author

For #10

record := value.(map[string]interface{})
record["Id"] = id
records = append(records, record)
if ip, ipErr := exec.Command("docker", "inspect", "--format", "{{.NetworkSettings.IPAddress}}", "dnsdock").Output(); ipErr == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth making a utility function for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need it in one place for now, so lets leave it. If we need it again we can undertake a larger refactoring, or decide if we need to move back to compilation with cgo

@febbraro febbraro merged commit b96487a into develop Feb 28, 2017
@febbraro febbraro deleted the feature/remove-cgo branch February 28, 2017 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants