GoBlog/pkgs/yaegiwrappers/github_com-araddon-datepars...

49 lines
2.2 KiB
Go

// Code generated by 'yaegi extract github.com/araddon/dateparse'. DO NOT EDIT.
// MIT License
//
// Copyright (c) 2020 - 2024 Jan-Lukas Else
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
package yaegiwrappers
import (
"github.com/araddon/dateparse"
"reflect"
)
func init() {
Symbols["github.com/araddon/dateparse/dateparse"] = map[string]reflect.Value{
// function, constant and variable definitions
"ErrAmbiguousMMDD": reflect.ValueOf(&dateparse.ErrAmbiguousMMDD).Elem(),
"MustParse": reflect.ValueOf(dateparse.MustParse),
"ParseAny": reflect.ValueOf(dateparse.ParseAny),
"ParseFormat": reflect.ValueOf(dateparse.ParseFormat),
"ParseIn": reflect.ValueOf(dateparse.ParseIn),
"ParseLocal": reflect.ValueOf(dateparse.ParseLocal),
"ParseStrict": reflect.ValueOf(dateparse.ParseStrict),
"PreferMonthFirst": reflect.ValueOf(dateparse.PreferMonthFirst),
"RetryAmbiguousDateWithSwap": reflect.ValueOf(dateparse.RetryAmbiguousDateWithSwap),
// type definitions
"ParserOption": reflect.ValueOf((*dateparse.ParserOption)(nil)),
}
}