FIND YOUR NEXT FEW LINES

Results for “File operations & paths”

Small, practical examples. Search by task or narrow things down below.

946 snippets foundClear filters
RustThreads & shared ownership

Initialize shared data once

Initialize shared data once in a complete Rust program using the standard library.

Rust✓ Tested
RustMaps & sets

Insert and retrieve a map value

Insert and retrieve a map value in a complete Rust program using the standard library.

Rust✓ Tested
Docker / ComposeLimits & process security

Insert Docker’s small init process

Docker / Compose: The init option adds a PID 1 process that reaps children and forwards signals.

Docker / Compose✓ Tested
GitGetting Started

Inspect a clean working tree

Git: Inspect a clean working tree inside the disposable repository created by the input setup.

Git✓ Tested
Docker / ComposeGetting Started

Inspect a completed container’s exit code

Docker / Compose: Inspect a completed container’s exit code using a locally available Ubuntu image.

Docker / Compose✓ Tested
GitRemotes & collaboration

Inspect a GitHub remote URL

Configure and inspect an example origin without contacting the network.

GitHub✓ Tested
GitBranches & ancestry

Inspect a revision with detached HEAD

Git: Detached mode is useful for inspection; create a branch before keeping new work.

Git✓ Tested
GoErrors & validation

Inspect a typed conversion error

Inspect a typed conversion error using a complete Go program with explicit sample inputs.

Go✓ Tested
Docker / ComposeNetworks & volume metadata

Inspect a user-defined network’s driver

Docker / Compose: The default driver for a local user-defined network is bridge.

Docker / Compose✓ Tested
GoFunctions & types

Inspect a value with a type switch

Inspect a value with a type switch using a complete Go program with explicit sample inputs.

Go✓ Tested
GoGetting Started

Inspect a value’s type

Inspect a value’s type using a complete Go program with explicit sample inputs.

Go✓ Tested
RustVectors & slices

Inspect overlapping windows

Inspect overlapping windows in a complete Rust program using the standard library.

Rust✓ Tested