go zoneinfo_goroot 源码

2022-07-15 浏览 (862)

golang zoneinfo_goroot 代码

文件路径:/src/time/zoneinfo_goroot.go

// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !ios && !android

package time

func gorootZoneSource(goroot string) (string, bool) {
	if goroot == "" {
		return "", false
	}
	return goroot + "/lib/time/zoneinfo.zip", true
}

相关信息

go 源码目录

相关文章

go embed 源码

go example_test 源码

go export_android_test 源码

go export_test 源码

go export_windows_test 源码

go format 源码

go format_test 源码

go genzabbrs 源码

go internal_test 源码

go mono_test 源码

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/8747c21ffa34464d9569334ce4d9322c