go zoneinfo_goroot 源码

  • 2022-07-15
  • 浏览 (867)

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 源码

0  赞