Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudifa/cuetorials
A compilation of sample go programs from Cuetorials.
https://github.com/rudifa/cuetorials
Last synced: 24 days ago
JSON representation
A compilation of sample go programs from Cuetorials.
- Host: GitHub
- URL: https://github.com/rudifa/cuetorials
- Owner: rudifa
- Created: 2023-05-23T13:11:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T18:08:24.000Z (over 1 year ago)
- Last Synced: 2024-10-06T01:41:25.021Z (about 1 month ago)
- Language: Go
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cuetorials
Sample go programs from [Cuetorials](https://cuetorials.com/)
A compilation by [@rudifa](https://github.com/rudifa).
There is one go project here for each Cuetorials section where go projects were found.
Where a Cuetorials section contains several projects, their code was folded into corresponding functions, each called from the `main.go`.
Imports seen in the tutorial code:
```
"cuelang.org/go/cue"
"cuelang.org/go/cue/cuecontext"
"cuelang.org/go/cue/errors"
"cuelang.org/go/cue/load"
"cuelang.org/go/tools/flow"
"cuelang.org/go/cue/format"
```Overview:
```
CUETORIALS % tree [main L|…1]
.
├── THE-GO-API
│ ├── BASICS
│ │ ├── building-values
│ │ │ ├── go.mod
│ │ │ └── main.go
│ │ ├── cue-context
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ └── main.go
│ │ ├── error-handling
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ └── main.go
│ │ ├── evaluating-values
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ └── main.go
│ │ ├── go-codec
│ │ │ ├── go.mod
│ │ │ └── main.go
│ │ ├── inspecting-values
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── main.go
│ │ │ └── value.cue
│ │ ├── printing-with-go-and-cue-format
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ └── main.go
│ │ ├── traversing-values
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── main.go
│ │ │ └── value.cue
│ │ ├── README.md
│ │ └── nitpick.txt
│ ├── CUSTOM-ATTRIBUTES
│ │ └── README.md
│ ├── LOADING-CUE
│ │ ├── loading-and-printing-cue-code
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── hello.cue
│ │ │ └── main.go
│ │ └── README.md
│ ├── REPLICATING-THE-CLI
│ │ └── README.md
│ └── THE-FLOW-ENGINE
│ ├── custom-workflow-tasks
│ │ ├── go.mod
│ │ ├── go.sum
│ │ └── main.go
│ └── README.md
└── README.md```