Examples using... log.Fatalf()
Recent
This example demonstrates how to use one group of driver
templates with distinct sets of helper templates.
This example demonstrates one way to share some templates
and use them in different contexts. In this variant we add multiple driver
templates by hand to an existing bundle of templates.
Here we demonstrate loading a set of templates from a directory.
This example demonstrates a custom function to process template text.
It installs the strings.Title function and uses it to
Make Title Text Look Good In Our Template's Output.
Example demonstrates the use of the trace package to trace
the execution of a Go program. The trace output will be
written to the file trace.out
Shutdown gracefully shuts down the server without interrupting any
active connections. Shutdown works by first closing all open
listeners, then closing all idle connections, and then waiting
indefinitely for connections to return to idle and then shut down.
If the provided context expires before the...
This example demonstrates how to use one group of driver
templates with distinct sets of helper templates.
Here we demonstrate loading a set of templates from files in different directories
This example demonstrates one way to share some templates
and use them in different contexts. In this variant we add multiple driver
templates by hand to an existing bundle of templates.
Here we demonstrate loading a set of templates from a directory.
Package sql provides a generic interface around SQL (or SQL-like)
databases.
Rollback aborts the transaction.
ExecContext executes a query that doesn't return rows.
For example: an INSERT and UPDATE.
QueryRowContext executes a prepared query statement with the given arguments.
If an error occurs during the execution of the statement, that error will
be returned by a call to Scan on the returned *Row, which is always non-nil.
If the query selects no rows, the *Row's Scan will return ErrNoRows.
Ot...
Stmt is a prepared statement.
A Stmt is safe for concurrent use by multiple goroutines.
QueryRowContext executes a query that is expected to return at most one row.
QueryRowContext always returns a non-nil value. Errors are deferred until
Row's Scan method is called.
If the query selects no rows, the *Row's Scan will return ErrNoRows.
Otherwise, the *Row's Scan scans the first selected...
Query executes a query that returns rows, typically a SELECT.
The args are for any placeholder parameters in the query.
ExecContext executes a query without returning any rows.
The args are for any placeholder parameters in the query.
ExecContext executes a query without returning any rows.
The args are for any placeholder parameters in the query.
A Config structure is used to configure a TLS client or server.
After one has been passed to a TLS function it must not be
modified. A Config may be reused; the tls package will also not
modify it.