gonf.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <title>gonf | Casey DeLorme's Portfolio / caseydelorme.com</title>
  9. <link rel="icon" type="image/x-icon" href="https://d2xxklvztqk0jd.cloudfront.net/favicon.ico" />
  10. <link rel="stylesheet" type="text/css" href="/css/main.css#3ff6967">
  11. </head>
  12. <body>
  13. <header class="group">
  14. <h1><a href='/'>Casey DeLorme</a></h1>
  15. <nav>
  16. <ul>
  17. <li><a href="/projects">Projects</a></li>
  18. <li><a href="/resume.html">Resume</a></li>
  19. </ul>
  20. </nav>
  21. </header>
  22. <div class="content group">
  23. <h3><a href="https://github.com/cdelorme/gonf">gonf</a></h3>
  24. <p>I actually started with three separate configuration packages, and a package to make working with <code>map[string]interface{}</code> easier:</p>
  25. <ul>
  26. <li><a href="https://github.com/cdelorme/go-option">go-option</a></li>
  27. <li><a href="https://github.com/cdelorme/go-config">go-config</a></li>
  28. <li><a href="https://github.com/cdelorme/go-env">go-env</a></li>
  29. <li><a href="https://github.com/cdelorme/go-maps">go-maps</a></li>
  30. </ul>
  31. <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>
  32. <p>So I decided to write a consolidated configuration package.</p>
  33. <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>
  34. <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>
  35. <p>However, even with the tests provided, because this is still fairly new I can&rsquo;t guarantee the stability just yet. Once I have used it in more projects I will be able to say for sure.</p>
  36. <p><strong><em>written on 2017-04-13</em></strong></p>
  37. </div>
  38. <footer class="group">
  39. <a href='https://www.facebook.com/CaseyRDeLorme' class='link facebook'></a>
  40. <a href='https://www.linkedin.com/in/cdelorme' class='link linkedin'></a>
  41. <a href='https://www.youtube.com/user/LordOfElm' class='link youtube'></a>
  42. <a href='https://github.com/cdelorme' class='link github'></a>
  43. <a href='skype:casey.delorme?chat' class='link skype'></a>
  44. <div class="scripts">
  45. <script type="text/javascript" src="/js/main.js#3ff6967" async></script>
  46. </div>
  47. </footer>
  48. </body>
  49. </html>