Google Git
Sign in
cue / cue / 69139d6f878cb1d0ac7fc18f8240c5abbcd772df / . / doc / tutorial / basics
tree: 2eaa0e7ee0df2667b9b4bc58aa323b9877a2731d [path history] [tgz]
  1. aliases.md
  2. bottom.md
  3. bytes.md
  4. coalesce.md
  5. commas.md
  6. commaslists.md
  7. comments.md
  8. conditional.md
  9. curly.md
  10. defaults.md
  11. disjstruct.md
  12. disjunctions.md
  13. duplicates.md
  14. emit.md
  15. fieldcomp.md
  16. fieldname.md
  17. fold.md
  18. foldany.md
  19. hidden.md
  20. imports.md
  21. instances.md
  22. interpolation.md
  23. interpolfield.md
  24. json.md
  25. listcomp.md
  26. lists.md
  27. numberlit.md
  28. numbers.md
  29. operators.md
  30. packages.md
  31. rangedef.md
  32. ranges.md
  33. Readme.md
  34. scopes.md
  35. selectors.md
  36. stringlit.md
  37. templates.md
  38. types.md
  39. unification.md
doc/tutorial/basics/Readme.md

CUE Tutorial

About this tutorial

This tutorial teaches the fundamentals of CUE. To try out the examples in the tutorial you can follow the installation instructions to get a working setup of CUE.

Use the cue eval or cue export commands to evaluate an example.

Click here to start

TOC

  • JSON Sugar and other Goodness
    • Quotes are Optional for Field Names
    • Commas are Optional after Fields
    • Commas are Still Required in Lists
    • Curly Braces
    • Folding of Single-Field Structs
    • Folding all Fields
    • Comments
    • Number Literals
    • String Literals
    • Bytes
  • References and Visibility
    • References and Scopes
    • Accessing Fields
    • Aliases
    • Emit Values
    • Hidden Values
  • Types and are Values
    • Duplicate Fields
    • Bottom / Error
    • Basic Types
    • Order is Irrelevant
    • Disjunctions
    • Default Values
    • Disjunctions of Structs
    • Numbers
    • Ranges
    • Predefined Ranges
    • Lists
    • Templates
  • Modules, Packages, and Instances
    • Packages
    • Imports
  • Expressions
    • Operators
    • Interpolation
    • Interpolation in Field Names
    • List Comprehensions
    • Field Comprehensions
    • Conditional Fields
    • Null or Error coalescing
Powered by Gitiles| Privacy| Termstxt json