all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -69,7 +69,7 @@ type Client struct {
transpiler *godartsass.Transpiler
}
func (c *Client) ToCSS(res resources.ResourceTransformer, args map[string]interface{}) (resource.Resource, error) {
func (c *Client) ToCSS(res resources.ResourceTransformer, args map[string]any) (resource.Resource, error) {
if c.dartSassNotAvailable {
return res.Transform(resources.NewFeatureNotAvailableTransformer(transformationName, args))
}
@@ -123,7 +123,7 @@ type Options struct {
EnableSourceMap bool
}
func decodeOptions(m map[string]interface{}) (opts Options, err error) {
func decodeOptions(m map[string]any) (opts Options, err error) {
if m == nil {
return
}

View File

@@ -53,7 +53,7 @@ func Supports() bool {
}
type transform struct {
optsm map[string]interface{}
optsm map[string]any
c *Client
}

View File

@@ -62,7 +62,7 @@ type Options struct {
EnableSourceMap bool
}
func DecodeOptions(m map[string]interface{}) (opts Options, err error) {
func DecodeOptions(m map[string]any) (opts Options, err error) {
if m == nil {
return
}

View File

@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build extended
// +build extended
package scss

View File

@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !extended
// +build !extended
package scss

View File

@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build extended
// +build extended
package scss