/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue15071.dir/exp.go
24 строки
378 B
LE Manh Cuong
test/fixedbugs: fix some tests will not be run
23 май 2019, 04:39
23 май 2019, 04:39
3e9d8e2
Код
Авторство
О чём код?
// Copyright 2016 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. package exp func Exported(x int) int { return inlined(x) } func inlined(x int) int { y := 0 switch { case x > 0: y += 5 return 0 + y case x < 1: y += 6 fallthrough default: y += 7 return 2 + y } }