code: func loadAgentFile(filename string) (*redditproto.UserAgent, error) {
  	buf, err := ioutil.ReadFile(filename)
  	if err != nil {
  		return nil, err
  	}
  
  	agent := &redditproto.UserAgent{}
  	return agent, proto.UnmarshalText(bytes.NewBuffer(buf).String(), agent)
  }
docs: // loadAgentFile reads a user agent from a protobuffer file and returns it.