// Copyright 2015 The Vanadium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// +build nacl | |
package platform | |
// GetPlatform returns the description of the Platform this process is running on. | |
// A default value for Platform is provided even if an error is | |
// returned; nil is never returned for the first return result. | |
func GetPlatform() (*Platform, error) { | |
d := &Platform{ | |
Vendor: "google", | |
Model: "generic", | |
System: "nacl", | |
Version: "0", | |
Release: "0", | |
Machine: "0", | |
Node: "0", | |
} | |
return d, nil | |
} |