templatemethod

package
v0.0.0-...-7dcde51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Example (One)
builders := []Builder{
	NewCPP11Builder(),
	NewCPP20Builder(),
}

for _, builder := range builders {
	builder.Build()
}
Output:

checking code syntax by C++11 standard
compiling code by GCC 4.8
linking code by GNU linker
checking code syntax by C++20 standard
compiling code by GCC 8
linking code by GNU linker

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build()
	CheckSyntax()
	Compile()
	Link()
}

func NewCPP11Builder

func NewCPP11Builder() Builder

func NewCPP20Builder

func NewCPP20Builder() Builder

type CPP11Builder

type CPP11Builder struct {
	// contains filtered or unexported fields
}

func (*CPP11Builder) Build

func (p *CPP11Builder) Build()

func (*CPP11Builder) CheckSyntax

func (*CPP11Builder) CheckSyntax()

func (*CPP11Builder) Compile

func (*CPP11Builder) Compile()
func (*CPP11Builder) Link()

type CPP20Builder

type CPP20Builder struct {
	// contains filtered or unexported fields
}

func (*CPP20Builder) Build

func (p *CPP20Builder) Build()

func (*CPP20Builder) CheckSyntax

func (*CPP20Builder) CheckSyntax()

func (*CPP20Builder) Compile

func (*CPP20Builder) Compile()
func (*CPP20Builder) Link()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL