Skip to content

Commit

Permalink
adding deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tovedetered committed Mar 13, 2024
1 parent 2f90ba1 commit 0a58388
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xmleam/builder.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub type Option {
/// Ex. builder.basic_tag("pubDate", "12 Mar 2024") to
/// <pubDate> 12 Mar 2024 <pubDate> \n
/// basic_tag(tag_name, contents)
@deprecated("Please Migrate to xml_builder module")
pub fn basic_tag(
tag_name: String,
contents: List(String),
Expand Down Expand Up @@ -48,6 +49,7 @@ pub fn basic_tag(
/// "IDK why you would use this")
/// ->
/// <enclosure url="https://example.com"> IDK why you would use this </enclosure>
@deprecated("Please Migrate to xml_builder module")
pub fn option_content_tag(
tag_name: String,
options: List(Option),
Expand Down Expand Up @@ -75,6 +77,7 @@ pub fn option_content_tag(
|> Ok
}

@deprecated("Please Migrate to xml_builder module")
pub fn option_tag(
tag_name: String,
options: List(Option),
Expand All @@ -96,6 +99,7 @@ pub fn option_tag(
///This is the header tag REQUIRED by all valid XML documents
/// Usage: xml(version (1.0), encoding (UTF-8),
/// document: List(String) -> [basic_tag(...), basic_tag(...)])
@deprecated("Please Migrate to xml_builder module")
pub fn xml(
version: String,
encoding: String,
Expand Down

0 comments on commit 0a58388

Please sign in to comment.