Skip to content

New functions, updates for Go 1.11, and improved documentation

Compare
Choose a tag to compare
@technosophos technosophos released this 12 Feb 19:57
· 251 commits to master since this release
b1fe275

Sprig has been updated to accommodate a breaking change to Go Templates' nil handling that was introduced in Go 1.11. Along the way, we added some new functions and updated the documentation in several places.

A few new functions were added, including:

  • mergeOverwrite
  • cryptographic functions that use secure random (see fe1de12)

All Changes

  • Improve documentation of regexMatch function, resolves #139 90b89ce (Jan Tagscherer)
  • Handle has for nil list 9c10885 (Daniel Cohen)
  • Document behaviour of mergeOverwrite fe0dbe9 (Lukas Rieder)
  • Fix dict merge issue and provide mergeOverwrite .dst .src1 to overwrite from src -> dst 4c59c12 (Lukas Rieder)
  • doc: adds missing documentation. 4b871e6 (Fernandez Ludovic)
  • Replace outdated goutils imports 01893d2 (Matthew Lorimor)
  • Surface crypto secure random strings from goutils fe1de12 (Matthew Lorimor)
  • Handle untyped nil values as paramters to string functions 2b2ec8f (Morten Torkildsen)
  • Fix substr var names and comments d581f80 (Dean Coakley)
  • Fix substr documentation 2737203 (Dean Coakley)