example

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package example contains utility functions for the examples in gitlab.com/efronlicht/esync's documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fib

func Fib(ctx context.Context, n int) int

Intentionally slow and inefficient implementation of the Fibonacci function.

func FmtLoaded

func FmtLoaded(loaded bool) string

Formated the loaded value. If loaded is true, it returns "loaded". If loaded is false, it returns "fetched".

func GoDoc

func GoDoc(ctx context.Context, identifier string) (string, error)

GoDoc fetches cached documentation for the given identifier. It is meant to simulate fetching documentation from a remote source.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL