github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/starlib/starlarkdocstore/docstore.go (about)

     1  // Copyright 2021 Edward McFarlane. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package starlarkdocstore supports noSQL document databases.
     6  package starlarkdocstore
     7  
     8  import (
     9  	"fmt"
    10  
    11  	"go.starlark.net/starlark"
    12  	"go.starlark.net/starlarkstruct"
    13  )
    14  
    15  func NewModule() *starlarkstruct.Module {
    16  	return &starlarkstruct.Module{
    17  		Name: "docstore",
    18  		Members: starlark.StringDict{
    19  			"open": starlark.NewBuiltin("docstore.open", Open),
    20  		},
    21  	}
    22  }
    23  
    24  func Open(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
    25  	return nil, fmt.Errorf("TODO")
    26  }