blob: 80d22e14d1f43e1baa63e756265207694257ffe1 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// found in the LICENSE file.
package main
import (
"github.com/golang/protobuf/proto"
static "go.fuchsia.dev/fuchsia/tools/integration/cmd/fint/proto"
)
func parseStatic(text string) (*static.Static, error) {
message := &static.Static{}
if err := proto.UnmarshalText(text, message); err != nil {
return nil, err
}
return message, nil
}