add templated patch

This commit is contained in:
Nikolai Rodionov
2023-02-26 18:00:34 +01:00
parent 83debb7459
commit 36fbd1c388
5 changed files with 946 additions and 45 deletions

View File

@ -0,0 +1 @@
pacjage

View File

@ -20,8 +20,8 @@ func (s OMP) Build() []byte {
}
type Data struct {
Intro []byte
LibFor []byte
Intro []byte
LibFor []byte
CurrentPersistent []byte
}
@ -42,9 +42,10 @@ func (s *Data) SetLibFor() {
}
func (s *Data) SetOMCurrentPersistent(kind string, name string) {
s.CurrentPersistent = []byte(fmt.Sprintf("(setf *om-current-persistent* (%s \"%s\" (quote nil) (quote nil) nil 6.19))", kind, name))
s.CurrentPersistent = []byte(fmt.Sprintf("(setf *om-current-persistent* (%s \"%s\" () (quote nil) nil 6.19))", kind, name))
}
func (s *Data) GetOMCurrentPersistent() []byte{
func (s *Data) GetOMCurrentPersistent() []byte {
return s.CurrentPersistent
}
}