Package com.diffplug.spotless.go
Class GofmtFormatStep
- java.lang.Object
-
- com.diffplug.spotless.go.GofmtFormatStep
-
public class GofmtFormatStep extends java.lang.ObjectNote: gofmt doesn't have a version flag, because it's part of standard Go distribution. So `go` executable can be used to determine base path and version, and path to gofmt can be built from it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatterStepcreate()static java.lang.StringdefaultVersion()static java.lang.Stringname()GofmtFormatStepwithGoExecutable(java.lang.String pathToExe)static GofmtFormatStepwithVersion(java.lang.String version)
-
-
-
Method Detail
-
name
public static java.lang.String name()
-
defaultVersion
public static java.lang.String defaultVersion()
-
withVersion
public static GofmtFormatStep withVersion(java.lang.String version)
-
withGoExecutable
public GofmtFormatStep withGoExecutable(java.lang.String pathToExe)
-
create
public FormatterStep create()
-
-