1
0
Fork 0
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:
Jason Hall 2021-11-01 15:58:29 -04:00
parent a45c068905
commit ec96ad4354

View file

@ -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 {