github.com/hattya/nazuna@v0.7.1-0.20240331055452-55e14c275c1c/export_test.go (about)

     1  //
     2  // nazuna :: export_test.go
     3  //
     4  //   Copyright (c) 2014-2020 Akinori Hattori <hattya@gmail.com>
     5  //
     6  //   SPDX-License-Identifier: MIT
     7  //
     8  
     9  package nazuna
    10  
    11  var (
    12  	SortKeys  = sortKeys
    13  	Marshal   = marshal
    14  	Unmarshal = unmarshal
    15  )
    16  
    17  func (l *Layer) SetAbst(abst *Layer) {
    18  	l.abst = abst
    19  }
    20  
    21  func (l *Layer) SetRepo(repo *Repository) {
    22  	l.repo = repo
    23  }
    24  
    25  func (repo *Repository) Root() string {
    26  	return repo.root
    27  }