mirror of
https://github.com/imjasonh/client-go2
synced 2026-07-11 18:39:50 +00:00
remove load bearing import; no longer load bearing
This commit is contained in:
parent
a45c068905
commit
ec96ad4354
1 changed files with 0 additions and 6 deletions
6
main.go
6
main.go
|
|
@ -2,7 +2,6 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"log"
|
||||
|
||||
"github.com/imjasonh/client-go2/generic"
|
||||
|
|
@ -26,11 +25,6 @@ var (
|
|||
)
|
||||
|
||||
func main() {
|
||||
// This is load bearing...
|
||||
// Without this, while the client is in generic/, I get a mysterious compiler error:
|
||||
// "internal compiler error: missing import reader for json.NewEncoder"
|
||||
_ = json.NewEncoder(nil)
|
||||
|
||||
ctx := context.Background()
|
||||
config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(clientcmd.NewDefaultClientConfigLoadingRules(), &clientcmd.ConfigOverrides{}).ClientConfig()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue