Skip to content
Myr

Removing unused imports when not using Viper

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Francia · committed by Steve Francia · parent f09e947 · Browse files · 1 file+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−1 removed

  • other:+16 added−1 removed

1 file+16 added−1 removed

modified:cobra/tpl/main.go+16 added-1 removed
1// Copyright © 2021 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314package tpl1516func MainTemplate() []byte {17 return []byte(`/*
17 unmodified lines
35*/36package cmd3738import (39{{- if .Viper }}40 "fmt"41 "os"42{{ end }}43 "github.com/spf13/cobra"29{{ if .Viper }}44{{- if .Viper }}45 "github.com/spf13/viper"{{ end }}46)4748{{ if .Viper -}}
112 unmodified lines