mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 23:52:47 +08:00
ci: replace golangci-lint with staticcheck
This commit is contained in:
@@ -11,9 +11,11 @@ import (
|
||||
|
||||
// This file implements types for helping to convert to Fortran testing capabilities.
|
||||
|
||||
//lint:file-ignore U1000 A number of functions are here that may be used in future.
|
||||
|
||||
// fortran64 is a float64 type that prints as a double precision constant in
|
||||
// Fortran format.
|
||||
type fortran64 float64 //nolint:unused
|
||||
type fortran64 float64
|
||||
|
||||
func (f fortran64) String() string {
|
||||
// Replace exponent with D
|
||||
@@ -24,7 +26,6 @@ func (f fortran64) String() string {
|
||||
|
||||
// printFortranArray prints a Go slice as an array that can be copied into a
|
||||
// fortran script.
|
||||
//nolint:deadcode,unused
|
||||
func printFortranArray(z []float64, name string) {
|
||||
fmt.Printf("%s(1:%d) = (/%v, &\n", name, len(z), fortran64(z[0]))
|
||||
for i := 1; i < len(z)-1; i++ {
|
||||
|
Reference in New Issue
Block a user