From b9e6fe21ab4463969ca742e7c347f3e9b2296792 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Sat, 1 May 2021 07:59:49 +0000 Subject: [PATCH] Docs: improve details Signed-off-by: Solomon Hykes --- doc/programming.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/programming.md b/doc/programming.md index 166256e1..497994d9 100644 --- a/doc/programming.md +++ b/doc/programming.md @@ -12,14 +12,10 @@ of GCL, the language used to configure all of Google's infrastructure. Cue extends JSON with powerful features: -* Go-like tooling and package system -* Custom types -* Schemas -* Templating -* Reusable packages -* Builtin functions -* Data composition with references and string interpolation -* Multi-line strings, string interpolation +* Composition: layering, templating, references +* Correctness: types, schemas +* Developer experience: comments, packages, first-class tooling, builtin functions +* And mucn more. To get started with Cue, we recommend the following resources: @@ -27,7 +23,6 @@ To get started with Cue, we recommend the following resources: * [Cue playground](https://cuelang.org/play/) - ## Writing your first plan To create a Dagger plan: @@ -80,6 +75,10 @@ For more inspiration, see these examples: For example: ``` +import ( + "strings" +) + // Create a relay definition which generates a greeting message #Greeting: { salutation: string | *"hello"