Skip to content

Commit b3a17a0

Browse files
zli82016JianweiQ
authored andcommitted
add json import path to fix tgc unit test (GoogleCloudPlatform#16178)
1 parent 30920e7 commit b3a17a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mmv1/templates/tgc_next/services/resource.go.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package {{ lower $.ProductMetadata.Name }}
1919
import (
2020
"bytes"
2121
"context"
22+
"encoding/json"
2223
"fmt"
2324
"log"
2425
"reflect"
@@ -46,6 +47,7 @@ var (
4647
_ = bytes.Clone
4748
_ = context.WithCancel
4849
_ = fmt.Sprintf
50+
_ = json.Unmarshal
4951
_ = log.Print
5052
_ = reflect.ValueOf
5153
_ = regexp.Match

0 commit comments

Comments
 (0)