// LoadServiceToken takes the given file path and parses a ServiceToken from
// the file contents.
//
// If the file does not exist, then this function returns an error. See the
// ParseServiceToken() function for more details on how service tokens are
// parsed.
LoadServiceToken takes the given file path and parses a ServiceToken from
the file contents.

If the file does not exist, then this function returns an error. See the
ParseServiceToken() function for more details on how service tokens are
parsed.
// LoadServiceToken takes the given file path and parses a ServiceToken from // the file contents . // // If the file does not exist then this function returns an error . See the // ParseServiceToken () function for more details on how service tokens are // parsed .
func LoadServiceToken(filepath string) (*ServiceToken, error) {
	fdata, err := ioutil.ReadFile(filepath)
	if err != nil {
		return nil, err
	}
	return ParseServiceToken(string(fdata))
}
func LoadServiceToken ( filepath string ) ( * ServiceToken , error ) { fdata , err := ioutil . ReadFile ( filepath ) if err != nil { return nil , err } return ParseServiceToken ( string ( fdata ) ) }
LoadServiceToken takes the given file path and parses a ServiceToken from
the file contents.
LoadServiceToken takes the given file path and parses a ServiceToken from the file contents .