go uname_other_test 源码

2022-07-15 浏览 (785)

golang uname_other_test 代码

文件路径:/src/runtime/pprof/uname_other_test.go

// Copyright 2021 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 !linux

package pprof

import (
	"errors"
)

func linuxKernelVersion() (major, minor, patch int, err error) {
	return 0, 0, 0, errors.New("not running on linux")
}

相关信息

go 源码目录

相关文章

go elf 源码

go label 源码

go label_test 源码

go map 源码

go mprof_test 源码

go pprof 源码

go pprof_norusage 源码

go pprof_rusage 源码

go pprof_test 源码

go proto 源码

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