12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="">
- <title>gonf | Casey DeLorme's Portfolio / caseydelorme.com</title>
- <link rel="icon" type="image/x-icon" href="https://d2xxklvztqk0jd.cloudfront.net/favicon.ico" />
- <link rel="stylesheet" type="text/css" href="/css/main.css#c5e63ca">
- </head>
- <body>
- <header class="group">
- <h1><a href='/'>Casey DeLorme</a></h1>
- <nav>
- <ul>
- <li><a href="/projects">Projects</a></li>
- <li><a href="/resume.html">Resume</a></li>
- </ul>
- </nav>
- </header>
- <div class="content group">
- <h3><a href="https://github.com/cdelorme/gonf">gonf</a></h3>
- <p>I actually started with three separate configuration packages, and a package to make working with <code>map[string]interface{}</code> easier:</p>
- <ul>
- <li><a href="https://github.com/cdelorme/go-option">go-option</a></li>
- <li><a href="https://github.com/cdelorme/go-config">go-config</a></li>
- <li><a href="https://github.com/cdelorme/go-env">go-env</a></li>
- <li><a href="https://github.com/cdelorme/go-maps">go-maps</a></li>
- </ul>
- <p>After over a year of using each, I realized that I always followed exactly the same patterns, and never leveraged maps due to the additional complexity.</p>
- <p>So I decided to write a consolidated configuration package.</p>
- <p>It currently provides POSIX compliant command line option support using an implementation with an explicit greedy character, environment variables, casting from string inputs to the supplied structure, loading and saving to and from a json file, and is completely concurrently safe.</p>
- <p>I made a lot of decisions that not everyone will agree with, <em>but for me this package solves every configuration problem I could want without importing a single third party dependency.</em></p>
- <p>However, even with the tests provided, because this is still fairly new I can’t guarantee the stability just yet. Once I have used it in more projects I will be able to say for sure.</p>
- <p><strong><em>written on 2017-04-13</em></strong></p>
- </div>
- <footer class="group">
- <a href='https://www.facebook.com/CaseyRDeLorme' class='link facebook'></a>
- <a href='https://www.linkedin.com/in/cdelorme' class='link linkedin'></a>
- <a href='https://www.youtube.com/user/LordOfElm' class='link youtube'></a>
- <a href='https://github.com/cdelorme' class='link github'></a>
- <a href='skype:casey.delorme?chat' class='link skype'></a>
- <div class="scripts">
- <script type="text/javascript" src="/js/main.js#c5e63ca" async></script>
- </div>
- </footer>
- </body>
- </html>
|