Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fmt.Stringer #72

Closed
samb1729 opened this issue Jun 4, 2016 · 1 comment
Closed

Implement fmt.Stringer #72

samb1729 opened this issue Jun 4, 2016 · 1 comment

Comments

@samb1729
Copy link
Contributor

samb1729 commented Jun 4, 2016

TomlTree currently has a ToString method but no String method which means it doesn't implement the standard interface for stringifying. I'm looking to be able to define an interface:

type Config interface {
    Get(key string) interface{}
    Set(key string, value interface{})
    fmt.Stringer
}

and use TomlTree as the implementation.

@pelletier
Copy link
Owner

Thank you for your contribution! PR merged.

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

No branches or pull requests

2 participants