...

Package protostruct

import "cloud.google.com/go/internal/protostruct"
Overview
Index

Overview ▾

Package protostruct supports operations on the protocol buffer Struct message.

func DecodeToMap

func DecodeToMap(s *pb.Struct) map[string]interface{}

DecodeToMap converts a pb.Struct to a map from strings to Go types. DecodeToMap panics if s is invalid.