mirror of
https://github.com/imjasonh/client-go2
synced 2026-07-21 14:28:42 +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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/imjasonh/client-go2/generic"
|
"github.com/imjasonh/client-go2/generic"
|
||||||
|
|
@ -26,11 +25,6 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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()
|
ctx := context.Background()
|
||||||
config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(clientcmd.NewDefaultClientConfigLoadingRules(), &clientcmd.ConfigOverrides{}).ClientConfig()
|
config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(clientcmd.NewDefaultClientConfigLoadingRules(), &clientcmd.ConfigOverrides{}).ClientConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue