Examples using... log.Println()
Recent
Template is the representation of a parsed template. The *parse.Tree
field is exported only for use by html/template and should be treated
as unexported by all other clients.
Scan is a support routine for fmt.Scanner. It accepts the formats
'e', 'E', 'f', 'F', 'g', 'G', and 'v'. All formats are equivalent.
Scan is a support routine for fmt.Scanner; it sets z to the value of
the scanned number. It accepts the formats 'b' (binary), 'o' (octal),
'd' (decimal), 'x' (lowercase hexadecimal), and 'X' (uppercase hexadecimal).
Scan is a support routine for fmt.Scanner; it sets z to the value of
the scanned number. It accepts formats whose verbs are supported by
fmt.Scan for floating point values, which are:
'b' (binary), 'e', 'E', 'f', 'F', 'g' and 'G'.
Scan doesn't handle ±Inf.
By default, Sarama uses the message's key to consistently assign a partition to
a message using hashing. If no key is set, a random partition will be chosen.
This example shows how you can partition messages randomly, even when a key is set,
by overriding Config.Producer.Partitioner.
This example shows how to assign partitions to your messages manually.
This example shows how to use the producer while simultaneously
reading the Errors channel to know about any failures.
This example shows how to use the producer with separate goroutines
reading from the Successes and Errors channels. Note that in order
for the Successes channel to be populated, you have to set
config.Producer.Return.Successes to true.
Package sql provides a generic interface around SQL (or SQL-like)
databases.
PingContext verifies a connection to the database is still alive,
establishing a connection if necessary.