FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Go/math/max/max.go at master · gitgitcode/Go · GitHub
gitgitcode
/
Go
Public
forked from
TheAlgorithms/Go
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Go
/
math
/
max
/
max.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (11 loc) · 238 Bytes
Breadcrumbs
Go
/
math
/
max
/
max.go
Copy path
File metadata and controls
12 lines (11 loc) · 238 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
package
max
// Int is a function which returns the maximum of all the integers provided as arguments.
func
Int
(
values
...
int
)
int
{
max
:=
values
[
0
]
for
_
,
value
:=
range
values
{
if
value
>
max
{
max
=
value
}
}
return
max
}
Back
|
FazBrowse Home
|
New Git URL