type sync.Once
197 uses
sync (current package)
once.go#L14: type Once struct {
once.go#L42: func (o *Once) Do(f func()) {
once.go#L63: func (o *Once) doSlow(f func()) {
archive/zip
reader.go#L38: fileListOnce sync.Once
cloud.google.com/go/compute/metadata
metadata.go#L103: onGCEOnce sync.Once
cloud.google.com/go/logging
logging.go#L259: once sync.Once
compress/flate
inflate.go#L29: var fixedOnce sync.Once
contrib.go.opencensus.io/exporter/prometheus
prometheus.go#L112: registerOnce sync.Once
contrib.go.opencensus.io/exporter/stackdriver
resource.go#L57: autodetectOnce *sync.Once
resource.go#L67: autodetectOnce = new(sync.Once)
stats.go#L74: initReaderOnce sync.Once
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource
monitored_resources.go#L71: var detectOnce sync.Once
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws
monitored_resources.go#L85: var detectOnce sync.Once
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp
monitored_resources.go#L153: var detectOnce sync.Once
contrib.go.opencensus.io/integrations/ocsql
dbstats_go1.11.go#L18: closeOnce sync.Once
crypto/des
block.go#L84: var feistelBoxOnce sync.Once
crypto/elliptic
elliptic.go#L391: var initonce sync.Once
p256_asm.go#L35: precomputeOnce sync.Once
crypto/internal/randutil
randutil.go#L15: closedChanOnce sync.Once
crypto/tls
common.go#L1423: once sync.Once
crypto/x509
cert_pool.go#L223: sync.Once
root.go#L16: once sync.Once
github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1
common.pb.go#L464: file_opencensus_proto_agent_common_v1_common_proto_rawDescOnce sync.Once
github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1
metrics.pb.go#L1368: file_opencensus_proto_metrics_v1_metrics_proto_rawDescOnce sync.Once
github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1
resource.pb.go#L132: file_opencensus_proto_resource_v1_resource_proto_rawDescOnce sync.Once
github.com/go-git/go-git/v5/plumbing/format/packfile
delta_selector.go#L65: var once sync.Once
github.com/go-redis/redis/v8
pubsub.go#L45: chOnce sync.Once
github.com/google/licensecheck
scan.go#L24: builtinScannerOnce sync.Once
github.com/google/licensecheck/internal/match
regexp.go#L56: onceDFA sync.Once
github.com/kevinburke/ssh_config
config.go#L61: loadConfigs sync.Once
github.com/yuin/goldmark-emoji/definition
github.go#L7: var githubOnce sync.Once
github.com/yuin/goldmark/parser
parser.go#L639: initSync sync.Once
github.com/yuin/goldmark/renderer
renderer.go#L102: initSync sync.Once
go.opencensus.io/metric/metricproducer
manager.go#L31: var once sync.Once
go.opencensus.io/plugin/ochttp
client_stats.go#L95: endOnce sync.Once
server.go#L176: endOnce sync.Once
go.opencensus.io/trace
trace.go#L61: endOnce sync.Once
go.opencensus.io/zpages
zpages.go#L63: var enableOnce sync.Once
go.opencensus.io/zpages/internal
resources.go#L37: once sync.Once
go.opentelemetry.io/otel/api/global
handler.go#L37: delegateErrorHandlerOnce sync.Once
go.opentelemetry.io/otel/api/global/internal
meter.go#L113: initialize sync.Once
state.go#L46: delegateMeterOnce sync.Once
state.go#L47: delegateTraceOnce sync.Once
state.go#L138: delegateMeterOnce = sync.Once{}
state.go#L139: delegateTraceOnce = sync.Once{}
trace.go#L96: once sync.Once
go.opentelemetry.io/otel/label
encoder.go#L72: defaultEncoderOnce sync.Once
golang.org/x/crypto/ssh
client.go#L22: handleForwardsOnce sync.Once // guards calling (*Client).handleForwards
golang.org/x/mod/internal/lazyregexp
lazyre.go#L20: once sync.Once
golang.org/x/net/http2
headermap.go#L14: commonBuildOnce sync.Once
server.go#L547: shutdownOnce sync.Once
transport.go#L129: connPoolOnce sync.Once
transport.go#L2593: fnonce *sync.Once // to call fn with
transport.go#L2619: s.fnonce = new(sync.Once)
golang.org/x/net/http2/hpack
huffman.go#L129: buildRootOnce sync.Once
golang.org/x/net/proxy
proxy.go#L127: once sync.Once
proxy.go#L147: e.once = sync.Once{}
golang.org/x/net/trace
events.go#L420: var eventsTmplOnce sync.Once
histogram.go#L332: var distTmplOnce sync.Once
trace.go#L957: var pageTmplOnce sync.Once
golang.org/x/oauth2
transport.go#L58: var cancelOnce sync.Once
golang.org/x/oauth2/google
appengine_gen2_flex.go#L19: var logOnce sync.Once // only spam about deprecation once
golang.org/x/pkgsite/internal/godoc/dochtml
template.go#L18: loadOnce sync.Once
golang.org/x/pkgsite/internal/licenses
licenses.go#L278: scannerOnce sync.Once
golang.org/x/sync/errgroup
errgroup.go#L23: errOnce sync.Once
golang.org/x/sys/unix
syscall_unix.go#L34: signalNameMapOnce sync.Once
golang.org/x/text/unicode/norm
tables13.0.0.go#L6815: var recompMapOnce sync.Once
google.golang.org/api/support/bundler
bundler.go#L91: semOnce sync.Once // guards semaphore initialization
google.golang.org/api/transport/cert
default_cert.go#L34: defaultSourceOnce sync.Once
google.golang.org/genproto/googleapis/api
launch_stage.pb.go#L162: file_google_api_launch_stage_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/api/annotations
field_behavior.pb.go#L188: file_google_api_field_behavior_proto_rawDescOnce sync.Once
http.pb.go#L686: file_google_api_http_proto_rawDescOnce sync.Once
resource.pb.go#L632: file_google_api_resource_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/api/distribution
distribution.pb.go#L741: file_google_api_distribution_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/api/label
label.pb.go#L190: file_google_api_label_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/api/metric
metric.pb.go#L702: file_google_api_metric_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/api/monitoredres
monitored_resource.pb.go#L406: file_google_api_monitored_resource_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/cloud/secretmanager/v1
resources.pb.go#L1155: file_google_cloud_secretmanager_v1_resources_proto_rawDescOnce sync.Once
service.pb.go#L1278: file_google_cloud_secretmanager_v1_service_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/cloud/tasks/v2
cloudtasks.pb.go#L1393: file_google_cloud_tasks_v2_cloudtasks_proto_rawDescOnce sync.Once
queue.pb.go#L761: file_google_cloud_tasks_v2_queue_proto_rawDescOnce sync.Once
target.pb.go#L909: file_google_cloud_tasks_v2_target_proto_rawDescOnce sync.Once
task.pb.go#L531: file_google_cloud_tasks_v2_task_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/container/v1
cluster_service.pb.go#L10270: file_google_container_v1_cluster_service_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1
common.pb.go#L692: file_google_devtools_clouderrorreporting_v1beta1_common_proto_rawDescOnce sync.Once
error_group_service.pb.go#L240: file_google_devtools_clouderrorreporting_v1beta1_error_group_service_proto_rawDescOnce sync.Once
error_stats_service.pb.go#L1371: file_google_devtools_clouderrorreporting_v1beta1_error_stats_service_proto_rawDescOnce sync.Once
report_errors_service.pb.go#L356: file_google_devtools_clouderrorreporting_v1beta1_report_errors_service_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2
profiler.pb.go#L649: file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/devtools/cloudtrace/v2
trace.pb.go#L1682: file_google_devtools_cloudtrace_v2_trace_proto_rawDescOnce sync.Once
tracing.pb.go#L186: file_google_devtools_cloudtrace_v2_tracing_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/iam/v1
iam_policy.pb.go#L365: file_google_iam_v1_iam_policy_proto_rawDescOnce sync.Once
options.pb.go#L126: file_google_iam_v1_options_proto_rawDescOnce sync.Once
policy.pb.go#L694: file_google_iam_v1_policy_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/logging/type
http_request.pb.go#L300: file_google_logging_type_http_request_proto_rawDescOnce sync.Once
log_severity.pb.go#L169: file_google_logging_type_log_severity_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/logging/v2
log_entry.pb.go#L623: file_google_logging_v2_log_entry_proto_rawDescOnce sync.Once
logging.pb.go#L1033: file_google_logging_v2_logging_proto_rawDescOnce sync.Once
logging_config.pb.go#L2754: file_google_logging_v2_logging_config_proto_rawDescOnce sync.Once
logging_metrics.pb.go#L890: file_google_logging_v2_logging_metrics_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/monitoring/v3
alert.pb.go#L1052: file_google_monitoring_v3_alert_proto_rawDescOnce sync.Once
alert_service.pb.go#L626: file_google_monitoring_v3_alert_service_proto_rawDescOnce sync.Once
common.pb.go#L1042: file_google_monitoring_v3_common_proto_rawDescOnce sync.Once
dropped_labels.pb.go#L139: file_google_monitoring_v3_dropped_labels_proto_rawDescOnce sync.Once
group.pb.go#L210: file_google_monitoring_v3_group_proto_rawDescOnce sync.Once
group_service.pb.go#L865: file_google_monitoring_v3_group_service_proto_rawDescOnce sync.Once
metric.pb.go#L966: file_google_monitoring_v3_metric_proto_rawDescOnce sync.Once
metric_service.pb.go#L1681: file_google_monitoring_v3_metric_service_proto_rawDescOnce sync.Once
mutation_record.pb.go#L135: file_google_monitoring_v3_mutation_record_proto_rawDescOnce sync.Once
notification.pb.go#L522: file_google_monitoring_v3_notification_proto_rawDescOnce sync.Once
notification_service.pb.go#L1222: file_google_monitoring_v3_notification_service_proto_rawDescOnce sync.Once
service.pb.go#L1952: file_google_monitoring_v3_service_proto_rawDescOnce sync.Once
service_service.pb.go#L1130: file_google_monitoring_v3_service_service_proto_rawDescOnce sync.Once
span_context.pb.go#L132: file_google_monitoring_v3_span_context_proto_rawDescOnce sync.Once
uptime.pb.go#L1442: file_google_monitoring_v3_uptime_proto_rawDescOnce sync.Once
uptime_service.pb.go#L758: file_google_monitoring_v3_uptime_service_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/rpc/code
code.pb.go#L295: file_google_rpc_code_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/rpc/errdetails
error_details.pb.go#L1046: file_google_rpc_error_details_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/rpc/status
status.pb.go#L144: file_google_rpc_status_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/type/calendarperiod
calendar_period.pb.go#L149: file_google_type_calendar_period_proto_rawDescOnce sync.Once
google.golang.org/genproto/googleapis/type/expr
expr.pb.go#L155: file_google_type_expr_proto_rawDescOnce sync.Once
google.golang.org/grpc
clientconn.go#L1239: once := sync.Once{}
server.go#L114: channelzRemoveOnce sync.Once
google.golang.org/grpc/credentials/alts
alts.go#L57: once sync.Once
google.golang.org/grpc/internal/binarylog
sink.go#L101: writeStartOnce sync.Once
google.golang.org/grpc/internal/channelz
types_nonlinux.go#L27: var once sync.Once
google.golang.org/grpc/internal/grpcsync
event.go#L32: o sync.Once
google.golang.org/grpc/internal/syscall
syscall_nonlinux.go#L33: var once sync.Once
google.golang.org/grpc/internal/transport
handler_server.go#L123: closeOnce sync.Once
google.golang.org/protobuf/internal/filedesc
desc.go#L511: once sync.Once
desc_lazy.go#L688: var once sync.Once
desc_list.go#L29: once sync.Once
desc_list.go#L68: once sync.Once
desc_list.go#L130: once sync.Once
desc_list.go#L222: once sync.Once
desc_list.go#L245: once sync.Once
desc_list_gen.go#L20: once sync.Once
desc_list_gen.go#L57: once sync.Once
desc_list_gen.go#L105: once sync.Once
desc_list_gen.go#L142: once sync.Once
desc_list_gen.go#L201: once sync.Once
desc_list_gen.go#L238: once sync.Once
desc_list_gen.go#L275: once sync.Once
desc_list_gen.go#L312: once sync.Once
google.golang.org/protobuf/internal/impl
codec_field.go#L120: var once sync.Once
message_reflect_field.go#L310: var once sync.Once
google.golang.org/protobuf/types/descriptorpb
descriptor.pb.go#L3573: file_google_protobuf_descriptor_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/anypb
any.pb.go#L434: file_google_protobuf_any_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/durationpb
duration.pb.go#L319: file_google_protobuf_duration_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/emptypb
empty.pb.go#L108: file_google_protobuf_empty_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/fieldmaskpb
field_mask.pb.go#L528: file_google_protobuf_field_mask_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/structpb
struct.pb.go#L706: file_google_protobuf_struct_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L321: file_google_protobuf_timestamp_proto_rawDescOnce sync.Once
google.golang.org/protobuf/types/known/wrapperspb
wrappers.pb.go#L595: file_google_protobuf_wrappers_proto_rawDescOnce sync.Once
hash/crc32
crc32.go#L81: var castagnoliOnce sync.Once
crc32.go#L109: var ieeeOnce sync.Once
html
entity.go#L24: var populateMapsOnce sync.Once
internal/goroot
gc.go#L34: once sync.Once
internal/lazyregexp
lazyre.go#L20: once sync.Once
internal/poll
fd_poll_runtime.go#L35: var serverInit sync.Once
internal/sysinfo
sysinfo.go#L15: once sync.Once
io
pipe.go#L44: once sync.Once // Protects closing done
math/big
sqrt.go#L13: sync.Once
mime
type.go#L78: var once sync.Once // guards initMime
net
conf.go#L36: confOnce sync.Once // guards init of confVal via initConfVal
dnsclient_unix.go#L317: initOnce sync.Once // guards init of resolverConfig
ipsock.go#L21: sync.Once // guards following
lookup_unix.go#L18: var onceReadProtocols sync.Once
net.go#L371: sync.Once
net.go#L666: var threadOnce sync.Once
pipe.go#L100: once sync.Once // Protects closing localDone
port_unix.go#L16: var onceReadServices sync.Once
unixsock.go#L224: unlinkOnce sync.Once
net/http
client.go#L383: var once sync.Once
h2_bundle.go#L3029: http2commonBuildOnce sync.Once
h2_bundle.go#L4113: shutdownOnce sync.Once
h2_bundle.go#L6631: connPoolOnce sync.Once
h2_bundle.go#L9097: fnonce *sync.Once // to call fn with
h2_bundle.go#L9123: s.fnonce = new(sync.Once)
server.go#L2644: nextProtoOnce sync.Once // guards setupHTTP2_* init
server.go#L3406: once sync.Once
transport.go#L273: nextProtoOnce sync.Once
transport.go#L806: envProxyOnce sync.Once
transport.go#L822: envProxyOnce = sync.Once{}
net/textproto
reader.go#L671: var commonHeaderOnce sync.Once
os/exec
exec.go#L598: once sync.Once
os/user
lookup.go#L25: sync.Once
strings
replace.go#L15: once sync.Once // guards buildOnce method
syscall
env_unix.go#L18: envOnce sync.Once
testing
benchmark.go#L255: var labelsOnce sync.Once
testing.go#L910: sync.Once
testing.go#L1344: afterOnce sync.Once
text/template
funcs.go#L64: sync.Once
time
zoneinfo.go#L85: var localOnce sync.Once
zoneinfo.go#L615: var zoneinfoOnce sync.Once
vendor/golang.org/x/net/http2/hpack
huffman.go#L129: buildRootOnce sync.Once
vendor/golang.org/x/text/unicode/norm
tables13.0.0.go#L6815: var recompMapOnce sync.Once
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |