parspack

package module
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

README

go-parspack

A Go library for parsing Spack package definition files.

License

Copyright 2020-2021 Alec Scott hi@alecbcs.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(spack string) (result pkg.Package, err error)

Decode parses a segment of Spack build instructional syntax and returns the results in a package Struct.

func Encode

func Encode(input pkg.Package) (result string, err error)

Encode writes the data from a package struct to a String to create a spack build spec.

func PatchVersion added in v0.1.4

func PatchVersion(input pkg.Package, inputRaw string) (result string, err error)

PatchVersion updates the version and latest URL of a file with the information from a Package struct without re-encoding the entire file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL